pub struct FullCopy<'a, S: Storage + ?Sized>(/* private fields */);
Expand description
Forces a full copy, even when partial_copy_into
is called
Implementations§
Trait Implementations§
Source§impl<S: Storage + ?Sized> Storage for FullCopy<'_, S>
impl<S: Storage + ?Sized> Storage for FullCopy<'_, S>
type Error = <S as Storage>::Error
Source§fn buffered_len(&self) -> usize
fn buffered_len(&self) -> usize
Returns the length of the chunk
Source§fn buffer_is_empty(&self) -> bool
fn buffer_is_empty(&self) -> bool
Returns if the chunk is empty
Source§fn read_chunk(&mut self, watermark: usize) -> Result<Chunk<'_>, Self::Error>
fn read_chunk(&mut self, watermark: usize) -> Result<Chunk<'_>, Self::Error>
Reads the current contiguous chunk
Source§fn partial_copy_into<Dest>(
&mut self,
dest: &mut Dest,
) -> Result<Chunk<'_>, Self::Error>
fn partial_copy_into<Dest>( &mut self, dest: &mut Dest, ) -> Result<Chunk<'_>, Self::Error>
Copies the reader into
dest
, with a trailing chunk of bytes. Read moreSource§fn copy_into<Dest>(&mut self, dest: &mut Dest) -> Result<(), Self::Error>
fn copy_into<Dest>(&mut self, dest: &mut Dest) -> Result<(), Self::Error>
Copies the reader into
dest
. Read moreSource§fn full_copy(&mut self) -> FullCopy<'_, Self>
fn full_copy(&mut self) -> FullCopy<'_, Self>
Forces the entire reader to be copied, even when calling
partial_copy_into
. Read moreSource§fn track_read(&mut self) -> Tracked<'_, Self>
fn track_read(&mut self) -> Tracked<'_, Self>
Tracks the number of bytes read from the storage
Auto Trait Implementations§
impl<'a, S> Freeze for FullCopy<'a, S>where
S: ?Sized,
impl<'a, S> RefUnwindSafe for FullCopy<'a, S>where
S: RefUnwindSafe + ?Sized,
impl<'a, S> Send for FullCopy<'a, S>
impl<'a, S> Sync for FullCopy<'a, S>
impl<'a, S> Unpin for FullCopy<'a, S>where
S: ?Sized,
impl<'a, S> !UnwindSafe for FullCopy<'a, S>
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