pub(crate) struct VolumeBlockDevice {
pub(crate) handle: u64,
pub(crate) sector_count: u64,
}Fields§
§handle: u64§sector_count: u64Implementations§
Source§impl VolumeBlockDevice
impl VolumeBlockDevice
Sourcepub(crate) fn new(handle: u64) -> Result<Self, BlockDeviceError>
pub(crate) fn new(handle: u64) -> Result<Self, BlockDeviceError>
Creates a new instance.
Trait Implementations§
Source§impl BlockDevice for VolumeBlockDevice
impl BlockDevice for VolumeBlockDevice
Source§fn read_offset(&self, offset: usize) -> Result<Vec<u8>, BlockDeviceError>
fn read_offset(&self, offset: usize) -> Result<Vec<u8>, BlockDeviceError>
Reads offset.
Source§fn write_offset(
&mut self,
offset: usize,
data: &[u8],
) -> Result<(), BlockDeviceError>
fn write_offset( &mut self, offset: usize, data: &[u8], ) -> Result<(), BlockDeviceError>
Writes offset.
Auto Trait Implementations§
impl Freeze for VolumeBlockDevice
impl RefUnwindSafe for VolumeBlockDevice
impl Send for VolumeBlockDevice
impl Sync for VolumeBlockDevice
impl Unpin for VolumeBlockDevice
impl UnsafeUnpin for VolumeBlockDevice
impl UnwindSafe for VolumeBlockDevice
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