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,
},
}
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
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>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PartitionRequest
impl !RefUnwindSafe for PartitionRequest
impl Send for PartitionRequest
impl Sync for PartitionRequest
impl Unpin for PartitionRequest
impl !UnwindSafe for PartitionRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more