Trait ExecutionControllerServerSender

Source
pub trait ExecutionControllerServerSender {
    type Transport: Transport;

    // Required method
    fn on_stop<___R>(
        &self,
        request: &mut ___R,
    ) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
       where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = <OnStop as Method>::Response>;
}
Expand description

A helper trait for the ExecutionController server sender.

Required Associated Types§

Source

type Transport: Transport

Required Methods§

Source

fn on_stop<___R>( &self, request: &mut ___R, ) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = <OnStop as Method>::Response>,

When the child is stopped due to Stop being called, the child exiting on its own, or for any other reason, OnStop is called and then this channel is closed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<___T> ExecutionControllerServerSender for ServerSender<___T, ExecutionController>
where ___T: Transport,

Source§

fn on_stop<___R>( &self, request: &mut ___R, ) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = <OnStop as Method>::Response>,

When the child is stopped due to Stop being called, the child exiting on its own, or for any other reason, OnStop is called and then this channel is closed.

Source§

type Transport = ___T

Implementors§