Trait fidl::endpoints::ControlHandle

source ·
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§

source

fn shutdown(&self)

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

source

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.

source

fn is_closed(&self) -> bool

Returns true if the server has received the PEER_CLOSED signal.

source

fn on_closed(&self) -> OnSignalsRef<'_>

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

source

fn signal_peer( &self, clear_mask: Signals, set_mask: Signals, ) -> Result<(), Status>

Sets and clears the signals provided on peer handle.

Implementors§