Struct lumina_node::p2p::P2pArgs
source · pub struct P2pArgs<S>where
S: Store + 'static,{
pub network_id: String,
pub local_keypair: Keypair,
pub bootnodes: Vec<Multiaddr>,
pub listen_on: Vec<Multiaddr>,
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.
store: Arc<S>The store for headers.
Auto Trait Implementations§
impl<S> RefUnwindSafe for P2pArgs<S>where
S: RefUnwindSafe,
impl<S> Send for P2pArgs<S>
impl<S> Sync for P2pArgs<S>
impl<S> Unpin for P2pArgs<S>
impl<S> UnwindSafe for P2pArgs<S>where
S: RefUnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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