[][src]Struct asuran::chunker::fastcdc::FastCDC

pub struct FastCDC {
    pub min_size: usize,
    pub max_size: usize,
    pub avg_size: usize,
}

Settings for a fastcdc Chunker

These are limited to usize, and not u64, because this implementation makes extensive use of in memory buffers of size max_size

This chunker, unlike BuzHash does not support any attempted mitigation of chunk based fingerprinting attacks. Those who are concerned about such an attack may wish to use the BuzHash chunker until such a time that a better repository format that does not leak information about chunk sizes can be developed.

Fields

min_size: usizemax_size: usizeavg_size: usize

Trait Implementations

impl Chunker for FastCDC[src]

type Chunks = FastCDCChunker

The return type of the functions in this trait is an iterator over the chunks of their input. Read more

impl Clone for FastCDC[src]

impl Copy for FastCDC[src]

impl Default for FastCDC[src]

Auto Trait Implementations

impl RefUnwindSafe for FastCDC

impl Send for FastCDC

impl Sync for FastCDC

impl Unpin for FastCDC

impl UnwindSafe for FastCDC

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsyncChunker for T where
    T: Chunker + Send + Sync,
    <T as Chunker>::Chunks: Send
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]