fidl::endpoints

Trait Responder

Source
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§

Source

type ControlHandle: ControlHandle

The control handle for this protocol.

Required Methods§

Source

fn control_handle(&self) -> &Self::ControlHandle

Returns the ControlHandle for this protocol.

Source

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.

Implementors§