pub struct GptManager { /* private fields */ }
Expand description
Runs a GPT device.
Implementations§
Source§impl GptManager
impl GptManager
pub async fn new( block: impl AsBlockProxy, 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, transaction: EventPair, ) -> 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