pub struct DeviceItem {}Expand description
Device item describing a single device in the filesystem.
Stored in the device tree and embedded in the superblock. Contains the device’s size, usage, and identifying UUIDs.
Fields§
§devid: u64Unique device ID within this filesystem.
total_bytes: u64Total size of the device in bytes.
bytes_used: u64Bytes allocated on this device.
io_align: u32I/O alignment requirement.
io_width: u32I/O width requirement.
sector_size: u32Sector size of this device.
dev_type: u64Device type (reserved, always 0).
generation: u64Generation when this device was last updated.
start_offset: u64Start offset for allocations on this device.
dev_group: u32Device group (reserved, always 0).
seek_speed: u8Seek speed hint (0 = not set).
bandwidth: u8Bandwidth hint (0 = not set).
uuid: UuidUUID of this device.
fsid: UuidFilesystem UUID that this device belongs to.
Implementations§
Source§impl DeviceItem
impl DeviceItem
Trait Implementations§
Source§impl Clone for DeviceItem
impl Clone for DeviceItem
Source§fn clone(&self) -> DeviceItem
fn clone(&self) -> DeviceItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeviceItem
impl RefUnwindSafe for DeviceItem
impl Send for DeviceItem
impl Sync for DeviceItem
impl Unpin for DeviceItem
impl UnsafeUnpin for DeviceItem
impl UnwindSafe for DeviceItem
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