[][src]Struct ipfs_unixfs::file::adder::BalancedCollector

pub struct BalancedCollector { /* fields omitted */ }

BalancedCollector creates balanced UnixFs trees, most optimized for random access to different parts of the file. Currently supports only link count threshold or the branching factor.

Implementations

impl BalancedCollector[src]

pub fn with_branching_factor(branching_factor: usize) -> Self[src]

Configure Balanced collector with the given branching factor.

Trait Implementations

impl Clone for BalancedCollector[src]

impl Debug for BalancedCollector[src]

impl Default for BalancedCollector[src]

fn default() -> Self[src]

Returns a default collector which matches go-ipfs 0.6

The origin for 174 is not described in the the specs, but has likely to do something with being "good enough" regarding prefetching when reading and allows reusing some of the link blocks if parts of a longer file change.

impl From<BalancedCollector> for Collector[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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, 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.