pub enum BlockRequest {
GetInfo {
responder: BlockGetInfoResponder,
},
GetStats {
clear: bool,
responder: BlockGetStatsResponder,
},
OpenSession {
session: ServerEnd<SessionMarker>,
control_handle: BlockControlHandle,
},
}
Expand description
Defines access to a device which is accessible in block-granularity chunks for reading and writing.
Variants§
GetInfo
Get information about the underlying block device.
Fields
§
responder: BlockGetInfoResponder
GetStats
Returns stats about block device operations. Setting clear
will reset stats counters.
OpenSession
Opens a new FIFO-based session on the block device.
Implementations§
Source§impl BlockRequest
impl BlockRequest
pub fn into_get_info(self) -> Option<BlockGetInfoResponder>
pub fn into_get_stats(self) -> Option<(bool, BlockGetStatsResponder)>
pub fn into_open_session( self, ) -> Option<(ServerEnd<SessionMarker>, BlockControlHandle)>
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 BlockRequest
impl !RefUnwindSafe for BlockRequest
impl Send for BlockRequest
impl Sync for BlockRequest
impl Unpin for BlockRequest
impl !UnwindSafe for BlockRequest
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