pub struct TangleConfig { /* private fields */ }Expand description
The configuration state of a tangle.
Implementations§
Source§impl TangleConfig
impl TangleConfig
Sourcepub fn build() -> TangleConfigBuilder
pub fn build() -> TangleConfigBuilder
Begin building a new TangleConfig.
Sourcepub fn below_max_depth(&self) -> u32
pub fn below_max_depth(&self) -> u32
Get the value of below_max_depth.
Sourcepub fn num_partitions(&self) -> NonZeroUsize
pub fn num_partitions(&self) -> NonZeroUsize
Get the value of num_partitions.
Sourcepub fn max_eviction_retries(&self) -> usize
pub fn max_eviction_retries(&self) -> usize
Get the value of max_eviction_retries.
Trait Implementations§
Source§impl Clone for TangleConfig
impl Clone for TangleConfig
Source§fn clone(&self) -> TangleConfig
fn clone(&self) -> TangleConfig
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 Freeze for TangleConfig
impl RefUnwindSafe for TangleConfig
impl Send for TangleConfig
impl Sync for TangleConfig
impl Unpin for TangleConfig
impl UnwindSafe for TangleConfig
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