pub trait OpenableLocalServerHandler<___T: Transport = Channel> {
// Required method
fn open(&mut self, request: Request<Open, ___T>) -> impl Future<Output = ()>;
// Provided method
fn on_unknown_interaction(
&mut self,
ordinal: u64,
) -> impl Future<Output = ()> { ... }
}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 = ()>
fn open(&mut self, request: Request<Open, ___T>) -> impl Future<Output = ()>
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§
fn on_unknown_interaction(&mut self, ordinal: u64) -> impl Future<Output = ()>
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.