Enum ethcore_network::NetworkIoMessage [] [src]

pub enum NetworkIoMessage {
    AddHandler {
        handler: Arc<NetworkProtocolHandler + Sync>,
        protocol: ProtocolId,
        versions: Vec<u8>,
        packet_count: u8,
    },
    AddTimer {
        protocol: ProtocolId,
        token: TimerToken,
        delay: u64,
    },
    InitPublicInterface,
    Disconnect(PeerId),
    DisablePeer(PeerId),
    NetworkStarted(String),
}

Messages used to communitate with the event loop from other threads.

Variants

Register a new protocol handler.

Fields

Handler shared instance.

Protocol Id.

Supported protocol versions.

Number of packet IDs reserved by the protocol.

Register a new protocol timer

Fields

Protocol Id.

Timer token.

Timer delay in milliseconds.

Initliaze public interface.

Disconnect a peer.

Disconnect and temporary disable peer.

Network has been started with the host as the given enode.

Trait Implementations

impl Clone for NetworkIoMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more