pub enum PartitionRequest {
GetInfo {
responder: PartitionGetInfoResponder,
},
GetStats {
clear: bool,
responder: PartitionGetStatsResponder,
},
OpenSession {
session: ServerEnd<SessionMarker>,
control_handle: PartitionControlHandle,
},
GetTypeGuid {
responder: PartitionGetTypeGuidResponder,
},
GetInstanceGuid {
responder: PartitionGetInstanceGuidResponder,
},
GetName {
responder: PartitionGetNameResponder,
},
GetMetadata {
responder: PartitionGetMetadataResponder,
},
}
Expand description
Partition describes a region of one or more block devices, labelled with distinguishing identifiers.
Variants§
GetInfo
Get information about the underlying block device.
Fields
responder: PartitionGetInfoResponder
GetStats
Returns stats about block device operations. Setting clear
will reset stats counters.
OpenSession
Opens a new FIFO-based session on the block device.
GetTypeGuid
Gets the type GUID of the partition (if one exists). If the partition has no type GUID, ZX_ERR_NOT_SUPPORTED is returned.
Fields
responder: PartitionGetTypeGuidResponder
GetInstanceGuid
Gets the instance GUID of the partition (if one exists). If the partition has no instance GUID, ZX_ERR_NOT_SUPPORTED is returned.
Fields
responder: PartitionGetInstanceGuidResponder
GetName
Gets the name of the partition (if one exists). If the partition has no name, ZX_ERR_NOT_SUPPORTED is returned.
Fields
responder: PartitionGetNameResponder
GetMetadata
Gets the metadata for the partition.
Fields may be absent if the partition doesn’t have the given metadata.
Fields
responder: PartitionGetMetadataResponder
Implementations§
Source§impl PartitionRequest
impl PartitionRequest
pub fn into_get_info(self) -> Option<PartitionGetInfoResponder>
pub fn into_get_stats(self) -> Option<(bool, PartitionGetStatsResponder)>
pub fn into_open_session( self, ) -> Option<(ServerEnd<SessionMarker>, PartitionControlHandle)>
pub fn into_get_type_guid(self) -> Option<PartitionGetTypeGuidResponder>
pub fn into_get_instance_guid(self) -> Option<PartitionGetInstanceGuidResponder>
pub fn into_get_name(self) -> Option<PartitionGetNameResponder>
pub fn into_get_metadata(self) -> Option<PartitionGetMetadataResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL