pub struct OpenableSynchronousProxy { /* private fields */ }Implementations§
Source§impl OpenableSynchronousProxy
impl OpenableSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<OpenableEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<OpenableEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn open(
&self,
path: &str,
flags: Flags,
options: &Options,
object: Channel,
) -> Result<(), Error>
pub fn open( &self, path: &str, flags: Flags, options: &Options, object: Channel, ) -> Result<(), Error>
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
Trait Implementations§
Source§impl Debug for OpenableSynchronousProxy
impl Debug for OpenableSynchronousProxy
Source§impl From<Channel> for OpenableSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for OpenableSynchronousProxy
Available on Fuchsia only.
Source§impl From<OpenableSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<OpenableSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: OpenableSynchronousProxy) -> Self
fn from(value: OpenableSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for OpenableSynchronousProxy
Available on Fuchsia only.
impl FromClient for OpenableSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = OpenableMarker
type Protocol = OpenableMarker
The protocol.
Source§fn from_client(value: ClientEnd<OpenableMarker>) -> Self
fn from_client(value: ClientEnd<OpenableMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for OpenableSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for OpenableSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = OpenableProxy
type Proxy = OpenableProxy
The async proxy for the same protocol.
Source§type Protocol = OpenableMarker
type Protocol = OpenableMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for OpenableSynchronousProxy
impl RefUnwindSafe for OpenableSynchronousProxy
impl Send for OpenableSynchronousProxy
impl Sync for OpenableSynchronousProxy
impl Unpin for OpenableSynchronousProxy
impl UnsafeUnpin for OpenableSynchronousProxy
impl UnwindSafe for OpenableSynchronousProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more