pub trait ComponentControllerClientSender {
type Transport: Transport;
// Required methods
fn stop(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>;
fn kill(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>;
}
Expand description
A helper trait for the ComponentController
client sender.
Required Associated Types§
Required Methods§
Sourcefn stop(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
fn stop(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
Request to stop the component instance.
After stopping the component instance, the server should close this connection with an epitaph. After the connection closes, component manager considers this component instance to be Stopped and the component’s namespace will be torn down.
Sourcefn kill(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
fn kill(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
Stop this component instance immediately.
The ComponentRunner must immediately kill the component instance, and then close this connection with an epitaph. After the connection closes, component manager considers this component instance to be Stopped and the component’s namespace will be torn down.
In some cases Kill() may be issued before Stop(), but that is not guaranteed.
Implementations on Foreign Types§
Source§impl<___T> ComponentControllerClientSender for ClientSender<___T, ComponentController>where
___T: Transport,
impl<___T> ComponentControllerClientSender for ClientSender<___T, ComponentController>where
___T: Transport,
Source§fn stop(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
fn stop(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
Request to stop the component instance.
After stopping the component instance, the server should close this connection with an epitaph. After the connection closes, component manager considers this component instance to be Stopped and the component’s namespace will be torn down.
Source§fn kill(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
fn kill(&self) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
Stop this component instance immediately.
The ComponentRunner must immediately kill the component instance, and then close this connection with an epitaph. After the connection closes, component manager considers this component instance to be Stopped and the component’s namespace will be torn down.
In some cases Kill() may be issued before Stop(), but that is not guaranteed.