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 MemoryStoreConfigimpl Send for MemoryStoreConfigimpl Sync for MemoryStoreConfigimpl Unpin for MemoryStoreConfigimpl UnwindSafe for MemoryStoreConfigBlanket 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>::MetadataConverts 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 = TShould always be Self
pub fn vzip(self) -> V