Struct ckb_network::network::NetworkService
source · pub struct NetworkService { /* private fields */ }
Expand description
Ckb network service, use to start p2p network
Implementations§
source§impl NetworkService
impl NetworkService
sourcepub fn new(
network_state: Arc<NetworkState>,
protocols: Vec<CKBProtocol>,
required_protocol_ids: Vec<ProtocolId>,
identify_announce: (String, String, Flags)
) -> Self
pub fn new( network_state: Arc<NetworkState>, protocols: Vec<CKBProtocol>, required_protocol_ids: Vec<ProtocolId>, identify_announce: (String, String, Flags) ) -> Self
init with all config
Auto Trait Implementations§
impl !RefUnwindSafe for NetworkService
impl Send for NetworkService
impl !Sync for NetworkService
impl Unpin for NetworkService
impl !UnwindSafe for NetworkService
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