Struct rust_unixfs::file::adder::BalancedCollector
source · pub struct BalancedCollector { /* private fields */ }
Expand description
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§
source§impl BalancedCollector
impl BalancedCollector
sourcepub fn with_branching_factor(branching_factor: usize) -> Self
pub fn with_branching_factor(branching_factor: usize) -> Self
Configure Balanced collector with the given branching factor.
Trait Implementations§
source§impl Clone for BalancedCollector
impl Clone for BalancedCollector
source§fn clone(&self) -> BalancedCollector
fn clone(&self) -> BalancedCollector
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 BalancedCollector
impl Debug for BalancedCollector
source§impl Default for BalancedCollector
impl Default for BalancedCollector
source§fn default() -> Self
fn default() -> Self
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.
source§impl From<BalancedCollector> for Collector
impl From<BalancedCollector> for Collector
source§fn from(b: BalancedCollector) -> Self
fn from(b: BalancedCollector) -> Self
Converts to this type from the input type.