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§
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 on_closed(&self) -> OnFDomainSignals ⓘ
fn on_closed(&self) -> OnFDomainSignals ⓘ
Returns a future that completes when the server receives the
PEER_CLOSED
signal.