[−][src]Struct asuran::chunker::BuzHash
Settings for a BuzHash
Chunker
Uses a randomized lookup table derived from a nonce provided by the repository key material, to help provide resistance against a chunk size based fingerprinting attack, for users who are concerned about such a thing.
This is a very tenuous mitigation for such an attack, borrowed from borg, and is, fundamentally, a temporary work around. The "correct" solution is to implement a better repository structure, that does not leak chunk sizes.
Methods
impl BuzHash
[src]
impl BuzHash
[src]
pub fn with_default(nonce: u64) -> BuzHash
[src]
Trait Implementations
impl Chunker for BuzHash
[src]
type Chunks = BuzHashChunker
The return type of the functions in this trait is an iterator over the chunks of their input. Read more
fn chunk_boxed(
&self,
read: Box<dyn Read + 'static + Send>
) -> <BuzHash as Chunker>::Chunks
[src]
&self,
read: Box<dyn Read + 'static + Send>
) -> <BuzHash as Chunker>::Chunks
fn chunk<R>(&self, read: R) -> Self::Chunks where
R: 'static + Read + Send,
[src]
R: 'static + Read + Send,
fn chunk_slice<R>(&self, slice: R) -> Self::Chunks where
R: 'static + AsRef<[u8]> + Send,
[src]
R: 'static + AsRef<[u8]> + Send,
impl Clone for BuzHash
[src]
impl Copy for BuzHash
[src]
Auto Trait Implementations
impl RefUnwindSafe for BuzHash
impl Send for BuzHash
impl Sync for BuzHash
impl Unpin for BuzHash
impl UnwindSafe for BuzHash
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsyncChunker for T where
T: Chunker + Send + Sync,
<T as Chunker>::Chunks: Send,
[src]
T: Chunker + Send + Sync,
<T as Chunker>::Chunks: Send,
fn async_chunk_boxed(
&self,
read: Box<dyn Read + 'static + Send>
) -> Receiver<Result<Vec<u8>, ChunkerError>>
[src]
&self,
read: Box<dyn Read + 'static + Send>
) -> Receiver<Result<Vec<u8>, ChunkerError>>
fn async_chunk<R>(&self, read: R) -> Receiver<Result<Vec<u8>, ChunkerError>> where
R: 'static + Read + Send,
[src]
R: 'static + Read + Send,
fn async_chunk_slice<R>(
&self,
slice: R
) -> Receiver<Result<Vec<u8>, ChunkerError>> where
R: 'static + AsRef<[u8]> + Send,
[src]
&self,
slice: R
) -> Receiver<Result<Vec<u8>, ChunkerError>> where
R: 'static + AsRef<[u8]> + Send,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,