Struct kitsune_p2p::KitsuneP2pConfig [−][src]
#[non_exhaustive]pub struct KitsuneP2pConfig {
pub transport_pool: Vec<TransportConfig>,
pub bootstrap_service: Option<Url2>,
pub tuning_params: KitsuneP2pTuningParams,
pub network_type: NetworkType,
}
Expand description
Configure the kitsune actor
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.transport_pool: Vec<TransportConfig>
list of sub-transports to be included in this pool
bootstrap_service: Option<Url2>
The service used for peers to discover each before they are peers.
tuning_params: KitsuneP2pTuningParams
Network tuning parameters. These are managed loosely, as they are subject to change. If you specify a tuning parameter that no longer exists, or a value that does not parse, a warning will be printed in the tracing log.
network_type: NetworkType
The network used for connecting to other peers
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl !RefUnwindSafe for KitsuneP2pConfig
impl Send for KitsuneP2pConfig
impl Sync for KitsuneP2pConfig
impl Unpin for KitsuneP2pConfig
impl !UnwindSafe for KitsuneP2pConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more