Trait SymlinkClientHandler

Source
pub trait SymlinkClientHandler<___T: Transport> {
    // Required methods
    fn on_open(
        &mut self,
        sender: &ClientSender<___T, Symlink>,
        message: ResponseBuffer<___T, OnOpen>,
    );
    fn on_representation(
        &mut self,
        sender: &ClientSender<___T, Symlink>,
        message: ResponseBuffer<___T, OnRepresentation>,
    );

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        sender: &ClientSender<___T, Symlink>,
        ordinal: u64,
    ) { ... }
}
Expand description

A client handler for the Symlink protocol.

See Symlink for more details.

Required Methods§

Source

fn on_open( &mut self, sender: &ClientSender<___T, Symlink>, message: ResponseBuffer<___T, OnOpen>, )

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<___T, Symlink>, message: ResponseBuffer<___T, OnRepresentation>, )

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<___T, Symlink>, ordinal: u64, )

Implementors§