pub struct Cached;Expand description
A file opened for cached I/O: the system cache holds its writes, and its write-back can fail
without telling the writer, so it claims WarrantyClass::BestEffort and needs no alignment.
Trait Implementations§
Source§impl Buffering for Cached
impl Buffering for Cached
Source§const WARRANTY: WarrantyClass = WarrantyClass::BestEffort
const WARRANTY: WarrantyClass = WarrantyClass::BestEffort
The warranty class a file in this mode can claim.
Source§const CAPABILITIES: Capabilities = Capabilities::NONE
const CAPABILITIES: Capabilities = Capabilities::NONE
What a file in this mode offers beyond the contract’s obligations.
Source§const LOCAL_DEVICE_ONLY: bool = false
const LOCAL_DEVICE_ONLY: bool = false
Whether the claim in
WARRANTY holds only on a device of this machine, so
that a file on a remote one is refused rather than given a class it cannot keep.Source§fn sector_geometry(sector_size: u32) -> Result<Geometry, GeometryError>
fn sector_geometry(sector_size: u32) -> Result<Geometry, GeometryError>
The alignment a raw volume or disk in this mode needs, addressed in sectors of
sector_size
bytes. Its transfers are whole sectors in either mode, so offsets and lengths are aligned to
one; its buffers only when it is unbuffered, as the cache is what lets a cached transfer
start anywhere. Read moreimpl Copy for Cached
Auto Trait Implementations§
impl Freeze for Cached
impl RefUnwindSafe for Cached
impl Send for Cached
impl Sync for Cached
impl Unpin for Cached
impl UnsafeUnpin for Cached
impl UnwindSafe for Cached
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