pub struct DirectInfo { /* private fields */ }Expand description
Direct I/O alignment information for a filesystem path.
Implementations§
Source§impl DirectInfo
impl DirectInfo
Sourcepub const fn logical_block_size(&self) -> u32
pub const fn logical_block_size(&self) -> u32
Returns the logical block size in bytes.
Sourcepub const fn physical_block_size(&self) -> u32
pub const fn physical_block_size(&self) -> u32
Returns the physical block size in bytes.
Trait Implementations§
Source§impl Clone for DirectInfo
impl Clone for DirectInfo
Source§fn clone(&self) -> DirectInfo
fn clone(&self) -> DirectInfo
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 moreSource§impl Debug for DirectInfo
impl Debug for DirectInfo
Source§impl Hash for DirectInfo
impl Hash for DirectInfo
Source§impl PartialEq for DirectInfo
impl PartialEq for DirectInfo
impl Copy for DirectInfo
impl Eq for DirectInfo
impl StructuralPartialEq for DirectInfo
Auto Trait Implementations§
impl Freeze for DirectInfo
impl RefUnwindSafe for DirectInfo
impl Send for DirectInfo
impl Sync for DirectInfo
impl Unpin for DirectInfo
impl UnwindSafe for DirectInfo
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