Enum fidl_fuchsia_io::Node2Request
source · pub enum Node2Request {
Close {
responder: Node2CloseResponder,
},
Query {
responder: Node2QueryResponder,
},
Reopen {
rights_request: Option<Box<RightsRequest>>,
object_request: ServerEnd<NodeMarker>,
control_handle: Node2ControlHandle,
},
GetConnectionInfo {
responder: Node2GetConnectionInfoResponder,
},
GetAttributes {
query: NodeAttributesQuery,
responder: Node2GetAttributesResponder,
},
UpdateAttributes {
payload: MutableNodeAttributes,
responder: Node2UpdateAttributesResponder,
},
Sync {
responder: Node2SyncResponder,
},
}
Expand description
Node defines the minimal protocol for entities which can be accessed in a filesystem.
Variants§
Close
Fields
responder: Node2CloseResponder
Terminates the connection.
After calling Close
, the client must not send any other requests.
Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.
Closing the client end of the channel should be semantically equivalent
to calling Close
without knowing when the close has completed or its
status.
Query
Fields
responder: Node2QueryResponder
Reopen
Fields
rights_request: Option<Box<RightsRequest>>
object_request: ServerEnd<NodeMarker>
control_handle: Node2ControlHandle
Creates another connection to the same node.
object_request
is the server end of a channel created for the new connection. The caller may proceed to send messages on the corresponding client end right away.
GetConnectionInfo
Fields
responder: Node2GetConnectionInfoResponder
Acquires information about the connection.
This method does not require any rights.
GetAttributes
Acquires information about the node.
The attributes of a node should be stable, independent of the specific protocol used to access it.
If a particular attribute is not applicable or not supported, filesystems should leave the corresponding field absent.
query
a bit-mask specifying which attributes to fetch. The server should not return more than necessary.
attributes
the returned attributes.
This method requires the [Rights.GET_ATTRIBUTES
] right.
UpdateAttributes
Updates information about the node.
attributes
the presence of a table field inattributes
indicates the intent to update the corresponding attribute.
This method requires the [Rights.UPDATE_ATTRIBUTES
] right.
Sync
Fields
responder: Node2SyncResponder
Synchronizes updates to the node to the underlying media, if it exists.
This method will return when the filesystem server has flushed the
relevant updates to the underlying media, but does not guarantee the
underlying media has persisted the information, nor that any information
is committed to hardware. Clients may use Sync
to ensure ordering
between operations.
This method does not require any rights.
Implementations§
source§impl Node2Request
impl Node2Request
pub fn into_close(self) -> Option<Node2CloseResponder>
pub fn into_query(self) -> Option<Node2QueryResponder>
pub fn into_reopen( self ) -> Option<(Option<Box<RightsRequest>>, ServerEnd<NodeMarker>, Node2ControlHandle)>
pub fn into_get_connection_info(self) -> Option<Node2GetConnectionInfoResponder>
pub fn into_get_attributes( self ) -> Option<(NodeAttributesQuery, Node2GetAttributesResponder)>
pub fn into_update_attributes( self ) -> Option<(MutableNodeAttributes, Node2UpdateAttributesResponder)>
pub fn into_sync(self) -> Option<Node2SyncResponder>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL