Struct fidl_fuchsia_io::Node1Proxy
source · pub struct Node1Proxy { /* private fields */ }
Implementations§
source§impl Node1Proxy
impl Node1Proxy
sourcepub fn take_event_stream(&self) -> Node1EventStream
pub fn take_event_stream(&self) -> Node1EventStream
Get a Stream of events from the remote end of the protocol.
Panics
Panics if the event stream was already taken.
sourcepub fn clone(
&self,
flags: OpenFlags,
object: ServerEnd<NodeMarker>
) -> Result<(), Error>
pub fn clone( &self, flags: OpenFlags, object: ServerEnd<NodeMarker> ) -> Result<(), Error>
Create another connection to the same remote object.
flags
may be any of:
OpenFlags.RIGHT_*
OpenFlags.APPEND
OpenFlags.DESCRIBE
OpenFlags.CLONE_SAME_RIGHTS
All other flags are ignored.
The OpenFlags.RIGHT_*
bits in flags
request corresponding rights over the resulting
cloned object.
The cloned object must have rights less than or equal to the original object, otherwise
returns ZX_ERR_ACCESS_DENIED
.
Alternatively, pass OpenFlags.CLONE_SAME_RIGHTS
to inherit the rights on the source connection.
It is invalid to pass any of the OpenFlags.RIGHT_*
flags together with
OpenFlags.CLONE_SAME_RIGHTS
.
sourcepub fn get_attr(&self) -> QueryResponseFut<(i32, NodeAttributes)>
pub fn get_attr(&self) -> QueryResponseFut<(i32, NodeAttributes)>
Acquires information about the node.
This method does not require any rights.
sourcepub fn set_attr(
&self,
flags: NodeAttributeFlags,
attributes: &NodeAttributes
) -> QueryResponseFut<i32>
pub fn set_attr( &self, flags: NodeAttributeFlags, attributes: &NodeAttributes ) -> QueryResponseFut<i32>
Updates information about the node.
This method requires following rights: OpenFlags.RIGHT_WRITABLE
, otherwise returns
ZX_ERR_BAD_HANDLE
.
sourcepub fn get_flags(&self) -> QueryResponseFut<(i32, OpenFlags)>
pub fn get_flags(&self) -> QueryResponseFut<(i32, OpenFlags)>
Acquires the Directory.Open
rights and flags used to access this file.
This method does not require any rights.
sourcepub fn set_flags(&self, flags: OpenFlags) -> QueryResponseFut<i32>
pub fn set_flags(&self, flags: OpenFlags) -> QueryResponseFut<i32>
Changes the Directory.Open
flags used to access the file.
Supported flags which can be turned on / off:
OpenFlags.APPEND
This method does not require any rights.
sourcepub fn query_filesystem(
&self
) -> QueryResponseFut<(i32, Option<Box<FilesystemInfo>>)>
pub fn query_filesystem( &self ) -> QueryResponseFut<(i32, Option<Box<FilesystemInfo>>)>
Query the filesystem for filesystem-specific information.
Trait Implementations§
source§impl Clone for Node1Proxy
impl Clone for Node1Proxy
source§fn clone(&self) -> Node1Proxy
fn clone(&self) -> Node1Proxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Node1Proxy
impl Debug for Node1Proxy
source§impl Node1ProxyInterface for Node1Proxy
impl Node1ProxyInterface for Node1Proxy
fn clone( &self, flags: OpenFlags, object: ServerEnd<NodeMarker> ) -> Result<(), Error>
type GetAttrResponseFut = QueryResponseFut<(i32, NodeAttributes)>
fn get_attr(&self) -> Self::GetAttrResponseFut
type SetAttrResponseFut = QueryResponseFut<i32>
fn set_attr( &self, flags: NodeAttributeFlags, attributes: &NodeAttributes ) -> Self::SetAttrResponseFut
type GetFlagsResponseFut = QueryResponseFut<(i32, OpenFlags)>
fn get_flags(&self) -> Self::GetFlagsResponseFut
type SetFlagsResponseFut = QueryResponseFut<i32>
fn set_flags(&self, flags: OpenFlags) -> Self::SetFlagsResponseFut
type QueryFilesystemResponseFut = QueryResponseFut<(i32, Option<Box<FilesystemInfo, Global>>)>
fn query_filesystem(&self) -> Self::QueryFilesystemResponseFut
source§impl Proxy for Node1Proxy
impl Proxy for Node1Proxy
§type Protocol = Node1Marker
type Protocol = Node1Marker
Proxy
controls.