pub trait ControlHandle {
    // Required methods
    fn shutdown(&self);
    fn shutdown_with_epitaph(&self, status: Status);
    fn is_closed(&self) -> bool;
    fn on_closed(&self) -> OnSignalsRef<'_>;
    fn signal_peer(
        &self,
        clear_mask: Signals,
        set_mask: Signals,
    ) -> Result<(), Status>;
}Expand description
A type associated with a RequestStream that can be used to send FIDL
events or to shut down the request stream.
Required Methods§
Sourcefn shutdown(&self)
 
fn shutdown(&self)
Set the server to shutdown. The underlying channel is only closed the next time the stream is polled.
Sourcefn shutdown_with_epitaph(&self, status: Status)
 
fn shutdown_with_epitaph(&self, status: Status)
Sets the server to shutdown with an epitaph. The underlying channel is only closed the next time the stream is polled.
Sourcefn on_closed(&self) -> OnSignalsRef<'_>
 
fn on_closed(&self) -> OnSignalsRef<'_>
Returns a future that completes when the server receives the
PEER_CLOSED signal.