pub trait OpenableServerHandler<___T: Transport = Channel> {
// Required method
fn open(
&mut self,
request: Request<Open, ___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 Openable protocol.
See Openable for more details.
Required Methods§
Sourcefn open(
&mut self,
request: Request<Open, ___T>,
) -> impl Future<Output = ()> + Send
fn open( &mut self, request: Request<Open, ___T>, ) -> impl Future<Output = ()> + Send
Open (or create) a node relative to this directory. Any errors are communicated via an
epitaph sent on the object channel.
Errors:
ZX_ERR_BAD_PATHifpathis invalid- See
Flagsfor other errors which may be communicated based onflags
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.