pub trait FileClientHandler<___T: Transport> {
// Required methods
fn on_open(
&mut self,
sender: &ClientSender<___T, File>,
message: ResponseBuffer<___T, OnOpen>,
);
fn on_representation(
&mut self,
sender: &ClientSender<___T, File>,
message: ResponseBuffer<___T, OnRepresentation>,
);
// Provided method
fn on_unknown_interaction(
&mut self,
sender: &ClientSender<___T, File>,
ordinal: u64,
) { ... }
}
Expand description
A client handler for the File protocol.
See File
for more details.
Required Methods§
Sourcefn on_open(
&mut self,
sender: &ClientSender<___T, File>,
message: ResponseBuffer<___T, OnOpen>,
)
fn on_open( &mut self, sender: &ClientSender<___T, File>, 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
).
Sourcefn on_representation(
&mut self,
sender: &ClientSender<___T, File>,
message: ResponseBuffer<___T, OnRepresentation>,
)
fn on_representation( &mut self, sender: &ClientSender<___T, File>, 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.