Skip to content
lsdocs-protocol API

lsdocs_protocol::request #

Requests, as marker types.

enum Initialize #

pub enum Initialize

Host -> plugin. Starts the session and exchanges capabilities.

Trait implementations

enum Shutdown #

pub enum Shutdown

Host -> plugin. Asks the plugin to finish outstanding work; it should then expect notification::Exit.

Trait implementations

enum Parse #

pub enum Parse

Host -> plugin. Parses one source file into a document.

Trait implementations

enum ParseTransformEach #

pub enum ParseTransformEach

Host -> plugin. First transform pass: gathers data from one document, e.g. its headings for a project-wide index.

Trait implementations

enum ParseTransformAll #

pub enum ParseTransformAll

Host -> plugin. Sent once between the two transform passes, to a plugin that collects: everything collected from all documents. The render/transform/each requests that follow omit it. The plugin may answer with documents it generates from that data (an index page, say), which join the project.

Trait implementations

enum RenderTransformEach #

pub enum RenderTransformEach

Host -> plugin. Second transform pass: rewrites one document, with the data collected from all documents.

Trait implementations

enum Render #

pub enum Render

Host -> plugin. Renders one document to an output format.

Trait implementations

enum HostParse #

pub enum HostParse

Plugin -> host. Parses a piece of text with the parser that takes files of an extension, e.g. a doc comment written in Markdown, while the plugin works on a request. The result is not normalized.

Trait implementations

enum RenderTransformAll #

pub enum RenderTransformAll

Host -> plugin. Sent once after every document is rendered, to every plugin that asks for it (RenderCapability::all), the renderer first, then the others in config order: returns output files that cover every page, such as a sitemap.

Trait implementations