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 MemoryStoreConfig
impl Default for MemoryStoreConfig
impl Default for MemoryStoreConfig
pub fn default() -> MemoryStoreConfig
pub fn default() -> MemoryStoreConfig
Returns 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
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self