pub enum CommonRequest {
Query {
responder: CommonQueryResponder,
},
Queue {
txn: BlockOp,
responder: CommonQueueResponder,
},
}
Variants§
Query
Obtains the parameters of the block device (block_info_t
) and the
required size of block_txn_t
. The block_txn_t
s submitted via
Queue()
must have block_op_size_out - sizeof(block_op_t)
bytes
available at the end of the structure for the use of the driver.
Fields
§
responder: CommonQueryResponder
Queue
Submits an I/O request for processing. Ownership of op
is transferred
to callee until completion_cb
is invoked. Success or failure will be
reported via the completion_cb
. This callback may be called before the
Queue()
method returns.
Implementations§
Source§impl CommonRequest
impl CommonRequest
pub fn into_query(self) -> Option<CommonQueryResponder>
pub fn into_queue(self) -> Option<(BlockOp, CommonQueueResponder)>
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 CommonRequest
impl !RefUnwindSafe for CommonRequest
impl Send for CommonRequest
impl Sync for CommonRequest
impl Unpin for CommonRequest
impl !UnwindSafe for CommonRequest
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