pub struct PartitionBlockDevice<T> { /* private fields */ }Implementations§
Source§impl<T: BlockDriverOps> PartitionBlockDevice<T>
impl<T: BlockDriverOps> PartitionBlockDevice<T>
pub const fn new(inner: T, region: PartitionRegion) -> Self
pub const fn region(&self) -> PartitionRegion
Trait Implementations§
Source§impl<T: BlockDriverOps> BaseDriverOps for PartitionBlockDevice<T>
impl<T: BlockDriverOps> BaseDriverOps for PartitionBlockDevice<T>
Source§fn device_name(&self) -> &str
fn device_name(&self) -> &str
The name of the device.
Source§fn device_type(&self) -> DeviceType
fn device_type(&self) -> DeviceType
The type of the device.
Source§impl<T: BlockDriverOps> BlockDriverOps for PartitionBlockDevice<T>
impl<T: BlockDriverOps> BlockDriverOps for PartitionBlockDevice<T>
Source§fn num_blocks(&self) -> u64
fn num_blocks(&self) -> u64
The number of blocks in this storage device. Read more
Source§fn block_size(&self) -> usize
fn block_size(&self) -> usize
The size of each block in bytes.
Source§fn read_block(&mut self, block_id: u64, buf: &mut [u8]) -> DevResult
fn read_block(&mut self, block_id: u64, buf: &mut [u8]) -> DevResult
Reads blocked data from the given block. Read more
Auto Trait Implementations§
impl<T> Freeze for PartitionBlockDevice<T>where
T: Freeze,
impl<T> RefUnwindSafe for PartitionBlockDevice<T>where
T: RefUnwindSafe,
impl<T> Send for PartitionBlockDevice<T>where
T: Send,
impl<T> Sync for PartitionBlockDevice<T>where
T: Sync,
impl<T> Unpin for PartitionBlockDevice<T>where
T: Unpin,
impl<T> UnsafeUnpin for PartitionBlockDevice<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PartitionBlockDevice<T>where
T: UnwindSafe,
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