pub enum PartitionsManagerRequest {
GetBlockInfo {
responder: PartitionsManagerGetBlockInfoResponder,
},
CreateTransaction {
responder: PartitionsManagerCreateTransactionResponder,
},
CommitTransaction {
transaction: EventPair,
responder: PartitionsManagerCommitTransactionResponder,
},
}
Variants§
GetBlockInfo
Returns the dimensions of the block device the partition manager resides in.
Fields
§
responder: PartitionsManagerGetBlockInfoResponder
CreateTransaction
Starts a new transaction to modify the partition table. The transaction will only be
applied when CommitTransaction
is called. Only one transaction may be active at any given
time. Closing all handles to the returned event will cancel the transaction.
Changes are added to the transaction via the Partition
interface, passing in a
duplicate of the transaction
object.
All changes in the transaction are applied atomically.
Fields
§
responder: PartitionsManagerCreateTransactionResponder
CommitTransaction
Commits the changes pending in the transaction.
Implementations§
Source§impl PartitionsManagerRequest
impl PartitionsManagerRequest
pub fn into_get_block_info( self, ) -> Option<PartitionsManagerGetBlockInfoResponder>
pub fn into_create_transaction( self, ) -> Option<PartitionsManagerCreateTransactionResponder>
pub fn into_commit_transaction( self, ) -> Option<(EventPair, PartitionsManagerCommitTransactionResponder)>
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 PartitionsManagerRequest
impl !RefUnwindSafe for PartitionsManagerRequest
impl Send for PartitionsManagerRequest
impl Sync for PartitionsManagerRequest
impl Unpin for PartitionsManagerRequest
impl !UnwindSafe for PartitionsManagerRequest
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