HtmlToMarkdownHtmlVisitorBridge (html_to_markdown v3.4.0-rc.21)

Copy Markdown View Source

GenServer bridge for HtmlVisitor implementation in html_to_markdown.

Handles incoming trait method calls from Rust and dispatches them to an implementation module.

Summary

Functions

Returns a specification to start this module under a supervisor.

Handle an incoming trait call message.

Register an implementation module, starting a GenServer to handle trait calls.

Start a GenServer linked to the current process.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

handle_info(msg, state)

Handle an incoming trait call message.

Message format: {:trait_call, method_atom, args_json, reply_id}

register(impl_module)

Register an implementation module, starting a GenServer to handle trait calls.

start_link(impl_module)

Start a GenServer linked to the current process.

impl_module should be a module that implements the HtmlVisitor trait methods.