pub struct GzipRsyncable { /* private fields */ }
Expand description
Parameters for defining the gzip rsyncable algorithm
Implementations§
Source§impl GzipRsyncable
impl GzipRsyncable
pub fn with_window_and_modulus(window: usize, modulus: u64) -> GzipRsyncable
Trait Implementations§
Source§impl Chunk for GzipRsyncable
impl Chunk for GzipRsyncable
Source§type SearchState = GzipRsyncableSearchState
type SearchState = GzipRsyncableSearchState
SearchState
allows searching for the chunk edge to resume without duplicating work
already done.Source§fn to_search_state(&self) -> Self::SearchState
fn to_search_state(&self) -> Self::SearchState
Provide an initial [
SearchState
] for use with [find_chunk_edge()
]. Generally, for each
input one should generate a new [SearchState
].Source§fn find_chunk_edge(
&self,
state: &mut Self::SearchState,
data: &[u8],
) -> (Option<usize>, usize)
fn find_chunk_edge( &self, state: &mut Self::SearchState, data: &[u8], ) -> (Option<usize>, usize)
Find the next “chunk” in
data
to emit Read moreSource§impl Clone for GzipRsyncable
impl Clone for GzipRsyncable
Source§fn clone(&self) -> GzipRsyncable
fn clone(&self) -> GzipRsyncable
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 GzipRsyncable
impl Debug for GzipRsyncable
Source§impl Default for GzipRsyncable
impl Default for GzipRsyncable
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.
Source§impl PartialEq for GzipRsyncable
impl PartialEq for GzipRsyncable
Source§impl ToChunkIncr for GzipRsyncable
impl ToChunkIncr for GzipRsyncable
Source§type Incr = GzipRsyncableIncr
type Incr = GzipRsyncableIncr
Incr
provides the incrimental interface to this chunking instanceimpl Eq for GzipRsyncable
impl StructuralPartialEq for GzipRsyncable
Auto Trait Implementations§
impl Freeze for GzipRsyncable
impl RefUnwindSafe for GzipRsyncable
impl Send for GzipRsyncable
impl Sync for GzipRsyncable
impl Unpin for GzipRsyncable
impl UnwindSafe for GzipRsyncable
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