pub struct PartitionsManagerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl PartitionsManagerSynchronousProxy
impl PartitionsManagerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PartitionsManagerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PartitionsManagerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn get_block_info(
&self,
___deadline: MonotonicInstant,
) -> Result<PartitionsManagerGetBlockInfoResult, Error>
pub fn get_block_info( &self, ___deadline: MonotonicInstant, ) -> Result<PartitionsManagerGetBlockInfoResult, Error>
Returns the dimensions of the block device the partition manager resides in.
Sourcepub fn create_transaction(
&self,
___deadline: MonotonicInstant,
) -> Result<PartitionsManagerCreateTransactionResult, Error>
pub fn create_transaction( &self, ___deadline: MonotonicInstant, ) -> Result<PartitionsManagerCreateTransactionResult, Error>
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.
Sourcepub fn commit_transaction(
&self,
transaction: EventPair,
___deadline: MonotonicInstant,
) -> Result<PartitionsManagerCommitTransactionResult, Error>
pub fn commit_transaction( &self, transaction: EventPair, ___deadline: MonotonicInstant, ) -> Result<PartitionsManagerCommitTransactionResult, Error>
Commits the changes pending in the transaction.
Sourcepub fn add_partition(
&self,
payload: PartitionsManagerAddPartitionRequest,
___deadline: MonotonicInstant,
) -> Result<PartitionsManagerAddPartitionResult, Error>
pub fn add_partition( &self, payload: PartitionsManagerAddPartitionRequest, ___deadline: MonotonicInstant, ) -> Result<PartitionsManagerAddPartitionResult, Error>
Allocates a new partition in transaction
. Fails if there is insufficient space for the
requested partition. There must be an empty slot in the partition table (the table will not
be resized).
Trait Implementations§
Source§impl From<Channel> for PartitionsManagerSynchronousProxy
impl From<Channel> for PartitionsManagerSynchronousProxy
Source§impl From<PartitionsManagerSynchronousProxy> for Handle
impl From<PartitionsManagerSynchronousProxy> for Handle
Source§fn from(value: PartitionsManagerSynchronousProxy) -> Self
fn from(value: PartitionsManagerSynchronousProxy) -> Self
Source§impl SynchronousProxy for PartitionsManagerSynchronousProxy
impl SynchronousProxy for PartitionsManagerSynchronousProxy
Source§type Proxy = PartitionsManagerProxy
type Proxy = PartitionsManagerProxy
Source§type Protocol = PartitionsManagerMarker
type Protocol = PartitionsManagerMarker
Proxy
controls.