Struct kitsune_p2p_types::tx2::MemConfig
source · #[non_exhaustive]pub struct MemConfig {
pub tls: Option<TlsConfig>,
pub tuning_params: Option<KitsuneP2pTuningParams>,
}
Expand description
Configuration for MemBackendAdapt
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.tls: Option<TlsConfig>
Tls config Default: None = ephemeral.
tuning_params: Option<KitsuneP2pTuningParams>
Tuning Params Default: None = default.
Implementations§
source§impl MemConfig
impl MemConfig
sourcepub async fn split(self) -> KitsuneResult<(TlsConfig, KitsuneP2pTuningParams)>
pub async fn split(self) -> KitsuneResult<(TlsConfig, KitsuneP2pTuningParams)>
into inner contents with default application
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MemConfig
impl Send for MemConfig
impl Sync for MemConfig
impl Unpin for MemConfig
impl !UnwindSafe for MemConfig
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.