pub struct FileBackend { /* private fields */ }Expand description
A byte source backed by a file. Reads run as positioned reads on a blocking thread pool so the async runtime is never stalled by disk I/O; the length is captured once at open (the file is treated as immutable while the backend lives).
Implementations§
Source§impl FileBackend
impl FileBackend
Trait Implementations§
Source§impl Backend for FileBackend
impl Backend for FileBackend
Auto Trait Implementations§
impl Freeze for FileBackend
impl RefUnwindSafe for FileBackend
impl Send for FileBackend
impl Sync for FileBackend
impl Unpin for FileBackend
impl UnsafeUnpin for FileBackend
impl UnwindSafe for FileBackend
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