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§
Sourcefn next(
&mut self,
) -> impl Future<Output = Result<RunnerMessage, ChannelError>> + Send
fn next( &mut self, ) -> impl Future<Output = Result<RunnerMessage, ChannelError>> + Send
The runner’s next message.
Sourcefn send(
&mut self,
message: AgentMessage,
) -> impl Future<Output = Result<(), ChannelError>> + Send
fn send( &mut self, message: AgentMessage, ) -> impl Future<Output = Result<(), ChannelError>> + Send
Answers the runner (a ScriptOperator’s declaration, decision 293).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".