pub struct OwnedSlice { /* private fields */ }Expand description
Owned slice over an Arc<dyn BlockRead>. Use when the parent’s
lifetime can’t be expressed in a borrow — e.g. when the slice is
handed across an FFI boundary or stored in a long-lived struct.
Implementations§
Trait Implementations§
Source§impl BlockDevice for OwnedSlice
Same rationale as SliceReader: read-only by default.
impl BlockDevice for OwnedSlice
Same rationale as SliceReader: read-only by default.
Source§fn flush(&self) -> Result<(), Error>
fn flush(&self) -> Result<(), Error>
Flush pending writes to stable storage. No-op by default.
Source§fn is_writable(&self) -> bool
fn is_writable(&self) -> bool
Whether
write_at is likely to succeed. Mount paths use this to
decide whether to attempt journal replay or stay strict-read-only.Auto Trait Implementations§
impl Freeze for OwnedSlice
impl !RefUnwindSafe for OwnedSlice
impl Send for OwnedSlice
impl Sync for OwnedSlice
impl Unpin for OwnedSlice
impl UnsafeUnpin for OwnedSlice
impl !UnwindSafe for OwnedSlice
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