[−][src]Struct ipfs_unixfs::file::adder::BalancedCollector
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]
fn clone(&self) -> BalancedCollector
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn from(b: BalancedCollector) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for BalancedCollector
impl Send for BalancedCollector
impl Sync for BalancedCollector
impl Unpin for BalancedCollector
impl UnwindSafe for BalancedCollector
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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, 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>,