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 Openable 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.