Trait FileClientHandler

Source
pub trait FileClientHandler<___T: Transport> {
    // Required methods
    fn on_open(
        &mut self,
        sender: &ClientSender<File, ___T>,
        event: Response<OnOpen, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn on_representation(
        &mut self,
        sender: &ClientSender<File, ___T>,
        event: Response<OnRepresentation, ___T>,
    ) -> impl Future<Output = ()> + Send;

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        sender: &ClientSender<File, ___T>,
        ordinal: u64,
    ) -> impl Future<Output = ()> + Send { ... }
}
Expand description

A client handler for the File protocol.

See File for more details.

Required Methods§

Source

fn on_open( &mut self, sender: &ClientSender<File, ___T>, event: Response<OnOpen, ___T>, ) -> impl Future<Output = ()> + Send

An event produced eagerly by a FIDL server if requested by OpenFlags.DESCRIBE.

Indicates the success or failure of the open operation, and optionally describes the object. If the status is ZX_OK, info contains descriptive information about the object (the same as would be returned by Describe).

Source

fn on_representation( &mut self, sender: &ClientSender<File, ___T>, event: Response<OnRepresentation, ___T>, ) -> impl Future<Output = ()> + Send

An event produced eagerly by the server if requested by [Flags.FLAG_SEND_REPRESENTATION]. This event will be sent as the first message from the server, and is sent exactly once.

The active variant corresponds to the negotiated protocol for the target node (i.e. the protocol which this channel now speaks). Additionally, auxiliary handles and requested attributes are also returned in the event.

Provided Methods§

Source

fn on_unknown_interaction( &mut self, sender: &ClientSender<File, ___T>, ordinal: u64, ) -> impl Future<Output = ()> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§