Trait NodeServerSender

Source
pub trait NodeServerSender {
    type Transport: Transport;

    // Required methods
    fn on_open<___R>(
        &self,
        request: &mut ___R,
    ) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
       where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = <OnOpen as Method>::Response>;
    fn on_representation<___R>(
        &self,
        request: &mut ___R,
    ) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
       where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = <OnRepresentation as Method>::Response>;
}
Expand description

A helper trait for the Node server sender.

Required Associated Types§

Source

type Transport: Transport

Required Methods§

Source

fn on_open<___R>( &self, request: &mut ___R, ) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = <OnOpen as Method>::Response>,

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<___R>( &self, request: &mut ___R, ) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = <OnRepresentation as Method>::Response>,

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.

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.

Implementations on Foreign Types§

Source§

impl<___T> NodeServerSender for ServerSender<___T, Node>
where ___T: Transport,

Source§

fn on_open<___R>( &self, request: &mut ___R, ) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = <OnOpen as Method>::Response>,

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<___R>( &self, request: &mut ___R, ) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = <OnRepresentation as Method>::Response>,

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.

Source§

type Transport = ___T

Implementors§