pub struct GzipRsyncableIncr { /* private fields */ }
Expand description
Provides an incremental interface to GzipRsyncable
Performance Note: GzipRsyncable
requires look-back. As a result, GzipRsyncableIncr
internally
buffers data up to the window size. This additional copying may affect performance. If
possible for your use case, use the non-incremental interface.
See GzipRsyncable
for details on the underlying algorithm
Trait Implementations§
Source§impl ChunkIncr for GzipRsyncableIncr
impl ChunkIncr for GzipRsyncableIncr
Source§fn push(&mut self, data: &[u8]) -> Option<usize>
fn push(&mut self, data: &[u8]) -> Option<usize>
The data “contained” within a implimentor of this trait is the history of all data slices
passed to feed. Read more
Source§fn iter_slices<'a>(self, data: &'a [u8]) -> IterSlices<'a, Self> ⓘwhere
Self: Sized,
fn iter_slices<'a>(self, data: &'a [u8]) -> IterSlices<'a, Self> ⓘwhere
Self: Sized,
Source§fn iter_slices_strict<'a>(self, data: &'a [u8]) -> IterSlicesStrict<'a, Self> ⓘwhere
Self: Sized,
fn iter_slices_strict<'a>(self, data: &'a [u8]) -> IterSlicesStrict<'a, Self> ⓘwhere
Self: Sized,
Given a
ChunkIncr
and a single slice, return a list of slices chunked by the chunker.
Does not return the remainder (if any) in the iteration. Use [IterSlices::take_rem()
] or
IterSlices::into_parts()
to get the remainder. Read moreSource§impl Clone for GzipRsyncableIncr
impl Clone for GzipRsyncableIncr
Source§fn clone(&self) -> GzipRsyncableIncr
fn clone(&self) -> GzipRsyncableIncr
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GzipRsyncableIncr
impl Debug for GzipRsyncableIncr
Source§impl From<&GzipRsyncable> for GzipRsyncableIncr
impl From<&GzipRsyncable> for GzipRsyncableIncr
Source§fn from(src: &GzipRsyncable) -> Self
fn from(src: &GzipRsyncable) -> Self
Converts to this type from the input type.
Source§impl From<GzipRsyncable> for GzipRsyncableIncr
impl From<GzipRsyncable> for GzipRsyncableIncr
Source§fn from(params: GzipRsyncable) -> Self
fn from(params: GzipRsyncable) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GzipRsyncableIncr
impl RefUnwindSafe for GzipRsyncableIncr
impl Send for GzipRsyncableIncr
impl Sync for GzipRsyncableIncr
impl Unpin for GzipRsyncableIncr
impl UnwindSafe for GzipRsyncableIncr
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