pub struct HashTreeConfig<S: Store> {
pub store: Arc<S>,
pub chunk_size: usize,
pub max_links: usize,
pub encrypted: bool,
}Expand description
HashTree configuration
Fields§
§store: Arc<S>§chunk_size: usize§max_links: usize§encrypted: boolWhether to encrypt content (default: true when encryption feature enabled)
Implementations§
Source§impl<S: Store> HashTreeConfig<S>
impl<S: Store> HashTreeConfig<S>
Trait Implementations§
Source§impl<S: Clone + Store> Clone for HashTreeConfig<S>
impl<S: Clone + Store> Clone for HashTreeConfig<S>
Source§fn clone(&self) -> HashTreeConfig<S>
fn clone(&self) -> HashTreeConfig<S>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<S> Freeze for HashTreeConfig<S>
impl<S> RefUnwindSafe for HashTreeConfig<S>where
S: RefUnwindSafe,
impl<S> Send for HashTreeConfig<S>
impl<S> Sync for HashTreeConfig<S>
impl<S> Unpin for HashTreeConfig<S>
impl<S> UnwindSafe for HashTreeConfig<S>where
S: RefUnwindSafe,
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