pub struct P2pNetworkConfig<SECURE> {
pub peer_id: PeerId,
pub listen_addr: SocketAddr,
pub advertise: Option<NetworkAddress>,
pub priv_key: PrivatePkcs8KeyDer<'static>,
pub cert: CertificateDer<'static>,
pub tick_ms: u64,
pub seeds: Vec<PeerAddress>,
pub secure: SECURE,
}Fields§
§peer_id: PeerId§listen_addr: SocketAddr§advertise: Option<NetworkAddress>§priv_key: PrivatePkcs8KeyDer<'static>§cert: CertificateDer<'static>§tick_ms: u64§seeds: Vec<PeerAddress>§secure: SECUREAuto Trait Implementations§
impl<SECURE> Freeze for P2pNetworkConfig<SECURE>where
SECURE: Freeze,
impl<SECURE> RefUnwindSafe for P2pNetworkConfig<SECURE>where
SECURE: RefUnwindSafe,
impl<SECURE> Send for P2pNetworkConfig<SECURE>where
SECURE: Send,
impl<SECURE> Sync for P2pNetworkConfig<SECURE>where
SECURE: Sync,
impl<SECURE> Unpin for P2pNetworkConfig<SECURE>where
SECURE: Unpin,
impl<SECURE> UnwindSafe for P2pNetworkConfig<SECURE>where
SECURE: UnwindSafe,
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