Struct ipfs_embed::KadConfig [−]
pub struct KadConfig {
pub max_records: usize,
pub max_value_bytes: usize,
pub max_providers_per_key: usize,
pub max_provided_keys: usize,
}Expand description
Configuration for a MemoryStore.
Fields
max_records: usizeThe maximum number of records.
max_value_bytes: usizeThe maximum size of record values, in bytes.
max_providers_per_key: usizeThe maximum number of providers stored for a key.
This should match up with the chosen replication factor.
max_provided_keys: usizeThe maximum number of provider records for which the local node is the provider.
Trait Implementations
impl Debug for MemoryStoreConfig
impl Debug for MemoryStoreConfigimpl Default for MemoryStoreConfig
impl Default for MemoryStoreConfigpub fn default() -> MemoryStoreConfig
pub fn default() -> MemoryStoreConfigReturns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for MemoryStoreConfig
impl Send for MemoryStoreConfig
impl Sync for MemoryStoreConfig
impl Unpin for MemoryStoreConfig
impl UnwindSafe for MemoryStoreConfig
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,