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.
Trait Implementations§
Source§impl SynchronousProxy for PartitionsManagerSynchronousProxy
impl SynchronousProxy for PartitionsManagerSynchronousProxy
Source§type Proxy = PartitionsManagerProxy
type Proxy = PartitionsManagerProxy
The async proxy for the same protocol.
Source§type Protocol = PartitionsManagerMarker
type Protocol = PartitionsManagerMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for PartitionsManagerSynchronousProxy
impl RefUnwindSafe for PartitionsManagerSynchronousProxy
impl Send for PartitionsManagerSynchronousProxy
impl Sync for PartitionsManagerSynchronousProxy
impl Unpin for PartitionsManagerSynchronousProxy
impl UnwindSafe for PartitionsManagerSynchronousProxy
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