pub struct FileSource { /* private fields */ }Expand description
A file on the local file system, read in place at the offsets asked for.
Every read completes before its future is first polled, so a synchronous
caller such as crate::codec::ExactFrameReader over an on-demand provider
can drive it directly. Clones share the open file, and no read moves a
cursor another one depends on.
Implementations§
Trait Implementations§
Source§impl ByteSource for FileSource
Available on Unix or Windows only.
impl ByteSource for FileSource
Available on Unix or Windows only.
Source§impl Clone for FileSource
impl Clone for FileSource
Auto Trait Implementations§
impl Forget for FileSource
impl Freeze for FileSource
impl Move 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