pub trait FileServerSender {
type Transport: Transport;
// Required methods
fn on_open<___R>(
&self,
request: ___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: ___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 File
server sender.
Required Associated Types§
Required Methods§
Sourcefn on_open<___R>(
&self,
request: ___R,
) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
fn on_open<___R>( &self, request: ___R, ) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
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
).
Sourcefn on_representation<___R>(
&self,
request: ___R,
) -> Result<SendFuture<'_, Self::Transport>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = <OnRepresentation as Method>::Response>,
fn on_representation<___R>(
&self,
request: ___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> FileServerSender for ServerSender<___T, File>where
___T: Transport,
impl<___T> FileServerSender for ServerSender<___T, File>where
___T: Transport,
Source§fn on_open<___R>(
&self,
request: ___R,
) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
fn on_open<___R>( &self, request: ___R, ) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
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: ___R,
) -> Result<SendFuture<'_, Self::Transport>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = <OnRepresentation as Method>::Response>,
fn on_representation<___R>(
&self,
request: ___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.