pub struct BuilderConfig<S: Store> {
pub store: Arc<S>,
pub chunk_size: usize,
pub max_links: usize,
pub encrypted: bool,
}👎Deprecated since 0.3.1:
use HashTree, which covers the same operations
Expand description
Builder configuration
Fields§
§store: Arc<S>👎Deprecated since 0.3.1:
§use HashTree, which covers the same operations
chunk_size: usize👎Deprecated since 0.3.1:
§use HashTree, which covers the same operations
max_links: usize👎Deprecated since 0.3.1:
§use HashTree, which covers the same operations
encrypted: bool👎Deprecated since 0.3.1:
use HashTree, which covers the same operations
Whether to encrypt content (default: true when encryption feature enabled)
Implementations§
Source§impl<S: Store> BuilderConfig<S>
impl<S: Store> BuilderConfig<S>
pub fn new(store: Arc<S>) -> Self
pub fn with_chunk_size(self, chunk_size: usize) -> Self
pub fn with_max_links(self, max_links: usize) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<S> Forget for BuilderConfig<S>
impl<S> Freeze for BuilderConfig<S>
impl<S> RefUnwindSafe for BuilderConfig<S>where
Arc<S>: RefUnwindSafe,
impl<S> Send for BuilderConfig<S>
impl<S> Sync for BuilderConfig<S>
impl<S> Unpin for BuilderConfig<S>
impl<S> UnsafeUnpin for BuilderConfig<S>where
Arc<S>: UnsafeUnpin,
impl<S> UnwindSafe for BuilderConfig<S>where
Arc<S>: UnwindSafe,
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