pub struct FileSource { /* private fields */ }Expand description
A ByteSource backed by a local file.
Uses a Mutex for interior mutability since Read+Seek requires &mut self but ByteSource’s read_range takes &self.
Implementations§
Trait Implementations§
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