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
AddTorrent(Metainfo)
Start tracking the given torrent.
RemoveTorrent(Metainfo)
Stop tracking the given torrent.
PeerConnected(PeerInfo)
Connected to the given peer.
This message can be sent multiple times, which is useful if extended peer information changes.
PeerDisconnected(PeerInfo)
Disconnected from the given peer.
Tick(Duration)
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]
fn clone(&self) -> ControlMessage
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ControlMessage
[src]
impl PartialEq for ControlMessage
[src]
fn eq(&self, __arg_0: &ControlMessage) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ControlMessage) -> bool
[src]
This method tests for !=
.