Struct fidl_fuchsia_io::OpenableProxy
source · pub struct OpenableProxy { /* private fields */ }
Implementations§
source§impl OpenableProxy
impl OpenableProxy
sourcepub fn take_event_stream(&self) -> OpenableEventStream
pub fn take_event_stream(&self) -> OpenableEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn open(
&self,
flags: OpenFlags,
mode: ModeType,
path: &str,
object: ServerEnd<NodeMarker>,
) -> Result<(), Error>
pub fn open( &self, flags: OpenFlags, mode: ModeType, path: &str, object: ServerEnd<NodeMarker>, ) -> Result<(), Error>
Opens a new object relative to this directory object.
path
may contain multiple segments, separated by “/” characters, and should never be
empty; i.e. “” is an invalid path. A trailing slash implies OpenFlags.DIRECTORY. Components
must not be empty (i.e. “foo//bar” is invalid). “..” is disallowed anywhere in the path. “.”
is only allowed if the path is exactly “.”, but not otherwise. A leading ‘/’ is allowed (and
is treated the same way as if not present, i.e. “/foo/bar’ and “foo/bar” are the same).
If an unknown value is sent for flags the connection should be closed.
OpenFlags.RIGHT_*
flags provided in flags
will restrict access rights on
the object
channel which will be connected to the opened entity.
Rights are never increased. When you open a nested entity within a directory, you may only
request the same rights as what the directory connection already has, or a subset of those.
Exceeding those rights causes an access denied error to be transmitted in the
OnOpen
event if applicable, and the object
connection closed.
mode
is ignored.
Trait Implementations§
source§impl Clone for OpenableProxy
impl Clone for OpenableProxy
source§fn clone(&self) -> OpenableProxy
fn clone(&self) -> OpenableProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OpenableProxy
impl Debug for OpenableProxy
source§impl Proxy for OpenableProxy
impl Proxy for OpenableProxy
§type Protocol = OpenableMarker
type Protocol = OpenableMarker
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for OpenableProxy
impl !RefUnwindSafe for OpenableProxy
impl Send for OpenableProxy
impl Sync for OpenableProxy
impl Unpin for OpenableProxy
impl !UnwindSafe for OpenableProxy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)