Struct ckb_network::network::NetworkController [−][src]
pub struct NetworkController { /* fields omitted */ }Expand description
Network controller
Implementations
set ckb2021 start
get ckb2021 flag
Disconnect session with peer id
Get banned peer list
Clear banned list
Ban an peer through peer index
Broadcast a message to all connected peers
Broadcast a message to all connected peers through quick queue
pub fn send_message_to(
&self,
session_id: SessionId,
proto_id: ProtocolId,
data: Bytes
) -> Result<(), SendErrorKind>
pub fn send_message_to(
&self,
session_id: SessionId,
proto_id: ProtocolId,
data: Bytes
) -> Result<(), SendErrorKind>
Send message to one connected peer
network message processing controller, always true, if false, discard any received messages
Change active status, if set false discard any received messages
Return all connected peers’ protocols info
Try ping all connected peers
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NetworkController
impl Send for NetworkController
impl Sync for NetworkController
impl Unpin for NetworkController
impl !UnwindSafe for NetworkController
Blanket Implementations
Mutably borrows from an owned value. Read more