pub struct SinkSource<'a> { /* private fields */ }Expand description
The read half of a LocalSink, borrowed for as long as the zoom pass
needs it.
Not LocalSource: that snapshots the length at open, which is exactly wrong
for a file still being written. This one carries the sink’s own position,
which is the only length that is true.
Trait Implementations§
Source§impl ByteSource for SinkSource<'_>
impl ByteSource for SinkSource<'_>
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<'a> Freeze for SinkSource<'a>
impl<'a> RefUnwindSafe for SinkSource<'a>
impl<'a> Send for SinkSource<'a>
impl<'a> Sync for SinkSource<'a>
impl<'a> Unpin for SinkSource<'a>
impl<'a> UnsafeUnpin for SinkSource<'a>
impl<'a> UnwindSafe for SinkSource<'a>
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