Trait ControlHandle

Source
pub trait ControlHandle {
    // Required methods
    fn shutdown(&self);
    fn is_closed(&self) -> bool;
    fn on_closed(&self) -> OnFDomainSignals ;
}
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§

Source

fn shutdown(&self)

Set the server to shutdown. The underlying channel is only closed the next time the stream is polled.

Source

fn is_closed(&self) -> bool

Returns true if the server has received the PEER_CLOSED signal.

Source

fn on_closed(&self) -> OnFDomainSignals

Returns a future that completes when the server receives the PEER_CLOSED signal.

Implementors§