Enum bip_select::ControlMessage [] [src]

pub enum ControlMessage {
    AddTorrent(Metainfo),
    RemoveTorrent(Metainfo),
    PeerConnected(PeerInfo),
    PeerDisconnected(PeerInfo),
    Tick(Duration),
}

Enumeration of control messages most modules will be interested in.

Variants

Start tracking the given torrent.

Stop tracking the given torrent.

Connected to the given peer.

This message can be sent multiple times, which is useful if extended peer information changes.

Disconnected from the given peer.

A span of time has passed.

This message is vital for certain modules to function correctly. Subsequent durations should not be spread too far apart.

Trait Implementations

impl Clone for ControlMessage
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ControlMessage
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for ControlMessage
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for ControlMessage
[src]