Struct ckb_network::network::NetworkService [−][src]
pub struct NetworkService<T> { /* fields omitted */ }Expand description
Ckb network service, use to start p2p network
Implementations
impl<T: ExitHandler> NetworkService<T>[src]
impl<T: ExitHandler> NetworkService<T>[src]pub fn new(
network_state: Arc<NetworkState>,
protocols: Vec<CKBProtocol>,
required_protocol_ids: Vec<ProtocolId>,
name: String,
version: String,
exit_handler: T
) -> Self[src]
pub fn new(
network_state: Arc<NetworkState>,
protocols: Vec<CKBProtocol>,
required_protocol_ids: Vec<ProtocolId>,
name: String,
version: String,
exit_handler: T
) -> Self[src]init with all config
Auto Trait Implementations
impl<T> !RefUnwindSafe for NetworkService<T>
impl<T> Send for NetworkService<T> where
T: Send,
T: Send,
impl<T> !Sync for NetworkService<T>
impl<T> Unpin for NetworkService<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for NetworkService<T>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,