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.
Auto Trait Implementations§
impl Freeze for BalancedCollector
impl RefUnwindSafe for BalancedCollector
impl Send for BalancedCollector
impl Sync for BalancedCollector
impl Unpin for BalancedCollector
impl UnwindSafe for BalancedCollector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more