pub trait DirReceiverServerHandler<___T: Transport = Channel> {
// Required method
fn receive(
&mut self,
request: Request<Receive, ___T>,
) -> impl Future<Output = ()> + Send;
// Provided method
fn on_unknown_interaction(
&mut self,
ordinal: u64,
) -> impl Future<Output = ()> + Send { ... }
}Expand description
A server handler for the DirReceiver protocol.
See DirReceiver for more details.
Required Methods§
Sourcefn receive(
&mut self,
request: Request<Receive, ___T>,
) -> impl Future<Output = ()> + Send
fn receive( &mut self, request: Request<Receive, ___T>, ) -> impl Future<Output = ()> + Send
Sends a directory channel to this receiver.
The server should implement this method by forwarding channel to a vfs instance
of the language appropriate vfs library. To keep this interface decoupled from
fuchsia.io, it deliberately omits Open/Open3 parameters such as flags and
path. If a client wishes to specify these, they can obtain an initial
[fuchsia.io/Directory] channel first and then call Open/Open3 on it.
Provided Methods§
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.