pub struct GptManager { /* private fields */ }
Expand description
Runs a GPT device.
Implementations§
Source§impl GptManager
impl GptManager
pub async fn new( block_proxy: BlockProxy, partitions_dir: Arc<Simple>, ) -> Result<Arc<Self>, Error>
pub fn block_size(&self) -> u32
pub fn block_count(&self) -> u64
pub async fn create_transaction(self: &Arc<Self>) -> Result<EventPair, Status>
pub async fn commit_transaction( self: &Arc<Self>, transaction: EventPair, ) -> Result<(), Status>
pub async fn add_partition( &self, request: PartitionsManagerAddPartitionRequest, ) -> Result<(), Status>
pub async fn handle_partitions_requests( &self, gpt_index: usize, requests: PartitionRequestStream, ) -> Result<(), Status>
pub async fn reset_partition_table( self: &Arc<Self>, partitions: Vec<PartitionInfo>, ) -> Result<(), Status>
pub async fn shutdown(self: Arc<Self>)
Trait Implementations§
Source§impl Debug for GptManager
impl Debug for GptManager
Auto Trait Implementations§
impl !Freeze for GptManager
impl !RefUnwindSafe for GptManager
impl Send for GptManager
impl Sync for GptManager
impl Unpin for GptManager
impl !UnwindSafe for GptManager
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more