Struct fidl_fuchsia_io::Node1SynchronousProxy
source · pub struct Node1SynchronousProxy { /* private fields */ }
Implementations§
source§impl Node1SynchronousProxy
impl Node1SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<Node1Event, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<Node1Event, 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 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,
___deadline: Time
) -> Result<(i32, NodeAttributes), Error>
pub fn get_attr( &self, ___deadline: Time ) -> Result<(i32, NodeAttributes), Error>
Acquires information about the node.
This method does not require any rights.
sourcepub fn set_attr(
&self,
flags: NodeAttributeFlags,
attributes: &mut NodeAttributes,
___deadline: Time
) -> Result<i32, Error>
pub fn set_attr( &self, flags: NodeAttributeFlags, attributes: &mut NodeAttributes, ___deadline: Time ) -> Result<i32, Error>
Updates information about the node.
This method requires following rights: OpenFlags.RIGHT_WRITABLE
, otherwise returns
ZX_ERR_BAD_HANDLE
.
sourcepub fn get_flags(&self, ___deadline: Time) -> Result<(i32, OpenFlags), Error>
pub fn get_flags(&self, ___deadline: Time) -> Result<(i32, OpenFlags), Error>
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,
___deadline: Time
) -> Result<i32, Error>
pub fn set_flags( &self, flags: OpenFlags, ___deadline: Time ) -> Result<i32, Error>
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,
___deadline: Time
) -> Result<(i32, Option<Box<FilesystemInfo>>), Error>
pub fn query_filesystem( &self, ___deadline: Time ) -> Result<(i32, Option<Box<FilesystemInfo>>), Error>
Query the filesystem for filesystem-specific information.