pub struct Config {Show 14 fields
pub listen_addr: Multiaddr,
pub persistent_peers: Vec<Multiaddr>,
pub persistent_peers_only: bool,
pub discovery: DiscoveryConfig,
pub idle_connection_timeout: Duration,
pub transport: TransportProtocol,
pub gossipsub: GossipSubConfig,
pub pubsub_protocol: PubSubProtocol,
pub channel_names: ChannelNames,
pub rpc_max_size: usize,
pub pubsub_max_size: usize,
pub enable_consensus: bool,
pub enable_sync: bool,
pub protocol_names: ProtocolNames,
}Fields§
§listen_addr: Multiaddr§persistent_peers: Vec<Multiaddr>§persistent_peers_only: bool§discovery: DiscoveryConfig§idle_connection_timeout: Duration§transport: TransportProtocol§gossipsub: GossipSubConfig§pubsub_protocol: PubSubProtocol§channel_names: ChannelNames§rpc_max_size: usize§pubsub_max_size: usize§enable_consensus: bool§enable_sync: bool§protocol_names: ProtocolNamesTrait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more