pub trait Responder {
type ControlHandle: ControlHandle;
// Required methods
fn control_handle(&self) -> &Self::ControlHandle;
fn drop_without_shutdown(self);
}
Expand description
A type associated with a particular two-way FIDL method, used by servers to send a response to the client.
Required Associated Types§
Sourcetype ControlHandle: ControlHandle
type ControlHandle: ControlHandle
The control handle for this protocol.
Required Methods§
Sourcefn control_handle(&self) -> &Self::ControlHandle
fn control_handle(&self) -> &Self::ControlHandle
Returns the ControlHandle
for this protocol.
Sourcefn drop_without_shutdown(self)
fn drop_without_shutdown(self)
Drops the responder without setting the channel to shutdown.
This method shouldn’t normally be used. Instead, send a response to prevent the channel from shutting down.