Skip to main content

ParseSession

Trait ParseSession 

Source
pub trait ParseSession: Send {
    // Required methods
    fn next(
        &mut self,
    ) -> impl Future<Output = Result<RunnerMessage, ChannelError>> + Send;
    fn send(
        &mut self,
        message: AgentMessage,
    ) -> impl Future<Output = Result<(), ChannelError>> + Send;
    fn stop(self) -> impl Future<Output = ()> + Send;
}
Expand description

A started runner in parse mode, after the handshake and the parse request.

Required Methods§

Source

fn next( &mut self, ) -> impl Future<Output = Result<RunnerMessage, ChannelError>> + Send

The runner’s next message.

Source

fn send( &mut self, message: AgentMessage, ) -> impl Future<Output = Result<(), ChannelError>> + Send

Answers the runner (a ScriptOperator’s declaration, decision 293).

Source

fn stop(self) -> impl Future<Output = ()> + Send

Stops the runner (its whole process group) and waits for it.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§