Enum fidl_fuchsia_io::Node1Request
source · pub enum Node1Request {
Clone {
flags: OpenFlags,
object: ServerEnd<NodeMarker>,
control_handle: Node1ControlHandle,
},
GetAttr {
responder: Node1GetAttrResponder,
},
SetAttr {
flags: NodeAttributeFlags,
attributes: NodeAttributes,
responder: Node1SetAttrResponder,
},
GetFlags {
responder: Node1GetFlagsResponder,
},
SetFlags {
flags: OpenFlags,
responder: Node1SetFlagsResponder,
},
QueryFilesystem {
responder: Node1QueryFilesystemResponder,
},
}
Expand description
Node defines the minimal interface for entities which can be accessed in a filesystem.
Variants§
Clone
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
.
GetAttr
Fields
responder: Node1GetAttrResponder
Acquires information about the node.
This method does not require any rights.
SetAttr
Updates information about the node.
This method requires following rights: OpenFlags.RIGHT_WRITABLE
, otherwise returns
ZX_ERR_BAD_HANDLE
.
GetFlags
Fields
responder: Node1GetFlagsResponder
Acquires the Directory.Open
rights and flags used to access this file.
This method does not require any rights.
SetFlags
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.
QueryFilesystem
Fields
responder: Node1QueryFilesystemResponder
Query the filesystem for filesystem-specific information.
Implementations§
source§impl Node1Request
impl Node1Request
pub fn into_clone( self ) -> Option<(OpenFlags, ServerEnd<NodeMarker>, Node1ControlHandle)>
pub fn into_get_attr(self) -> Option<Node1GetAttrResponder>
pub fn into_set_attr( self ) -> Option<(NodeAttributeFlags, NodeAttributes, Node1SetAttrResponder)>
pub fn into_get_flags(self) -> Option<Node1GetFlagsResponder>
pub fn into_set_flags(self) -> Option<(OpenFlags, Node1SetFlagsResponder)>
pub fn into_query_filesystem(self) -> Option<Node1QueryFilesystemResponder>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL