pub struct GptPartition { /* private fields */ }
Expand description
A single partition in a GPT device.
Implementations§
Source§impl GptPartition
impl GptPartition
pub fn new( gpt: &Arc<GptManager>, block_client: Arc<RemoteBlockClient>, index: u32, block_range: Range<u64>, ) -> Arc<Self>
pub async fn terminate(&self)
pub fn index(&self) -> u32
pub fn block_size(&self) -> u32
pub fn block_count(&self) -> u64
pub async fn attach_vmo(&self, vmo: &Vmo) -> Result<VmoId, Status>
pub async fn detach_vmo(&self, vmoid: VmoId) -> Result<(), Status>
pub async fn get_info(&self) -> Result<PartitionInfo, Status>
pub async fn read( &self, device_block_offset: u64, block_count: u32, vmo_id: &VmoId, vmo_offset: u64, ) -> Result<(), Status>
pub async fn write( &self, device_block_offset: u64, block_count: u32, vmo_id: &VmoId, vmo_offset: u64, opts: WriteOptions, ) -> Result<(), Status>
pub async fn flush(&self) -> Result<(), Status>
pub async fn trim( &self, device_block_offset: u64, block_count: u32, ) -> Result<(), Status>
Auto Trait Implementations§
impl Freeze for GptPartition
impl !RefUnwindSafe for GptPartition
impl Send for GptPartition
impl Sync for GptPartition
impl Unpin for GptPartition
impl !UnwindSafe for GptPartition
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