Struct lumina_node::p2p::P2pArgs
source · pub struct P2pArgs<B, S>where
B: Blockstore,
S: Store,{
pub network_id: String,
pub local_keypair: Keypair,
pub bootnodes: Vec<Multiaddr>,
pub listen_on: Vec<Multiaddr>,
pub blockstore: B,
pub store: Arc<S>,
}Expand description
Arguments used to configure the P2p.
Fields§
§network_id: StringAn id of the network to connect to.
local_keypair: KeypairThe keypair to be used as the identity.
bootnodes: Vec<Multiaddr>List of bootstrap nodes to connect to and trust.
listen_on: Vec<Multiaddr>List of the addresses on which to listen for incoming connections.
blockstore: BThe store for headers.
store: Arc<S>The store for headers.
Auto Trait Implementations§
impl<B, S> Freeze for P2pArgs<B, S>where
B: Freeze,
impl<B, S> RefUnwindSafe for P2pArgs<B, S>where
B: RefUnwindSafe,
S: RefUnwindSafe,
impl<B, S> Send for P2pArgs<B, S>
impl<B, S> Sync for P2pArgs<B, S>
impl<B, S> Unpin for P2pArgs<B, S>where
B: Unpin,
impl<B, S> UnwindSafe for P2pArgs<B, S>where
B: UnwindSafe,
S: RefUnwindSafe,
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> 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