pub struct LocalSource { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ByteSource for LocalSource
impl ByteSource for LocalSource
Source§fn read_at(&self, offset: u64, len: usize) -> Result<Bytes>
fn read_at(&self, offset: u64, len: usize) -> Result<Bytes>
Read up to
len bytes at offset, returning fewer at end of file.Source§fn close(&self)
fn close(&self)
Release the underlying handle. Idempotent; reads after it fail with
Error::Closed.fn is_empty(&self) -> Result<bool>
Auto Trait Implementations§
impl !Freeze for LocalSource
impl !RefUnwindSafe for LocalSource
impl Send for LocalSource
impl Sync for LocalSource
impl Unpin for LocalSource
impl UnsafeUnpin for LocalSource
impl UnwindSafe for LocalSource
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more