pub struct FileSource { /* private fields */ }Expand description
A file opened read only.
Implementations§
Trait Implementations§
Source§impl Source for FileSource
Available on Unix only.
impl Source for FileSource
Available on Unix only.
Source§fn accounts_for_wal(&self) -> bool
fn accounts_for_wal(&self) -> bool
Whether this source has already accounted for a write-ahead log. Read more
Source§fn read_at(&self, offset: u64, buf: &mut [u8]) -> Result<()>
fn read_at(&self, offset: u64, buf: &mut [u8]) -> Result<()>
Read exactly
buf.len() bytes at offset. Reading past the end is
an error; short reads are never returned.fn is_empty(&self) -> Result<bool>
Auto Trait Implementations§
impl Freeze for FileSource
impl RefUnwindSafe for FileSource
impl Send for FileSource
impl Sync for FileSource
impl Unpin for FileSource
impl UnsafeUnpin for FileSource
impl UnwindSafe for FileSource
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