Enum bip_select::ODiscoveryMessage
[−]
[src]
pub enum ODiscoveryMessage { SendDhtAnnounce(InfoHash), SendUdpTrackerAnnounce(InfoHash, SocketAddr, ClientState), SendUtMetadataMessage(PeerInfo, UtMetadataMessage), DownloadedMetainfo(Metainfo), }
Enumeration of discovery messages that can be received from a discovery module.
Variants
SendDhtAnnounce(InfoHash)
Send a dht announce for the InfoHash
.
SendUdpTrackerAnnounce(InfoHash, SocketAddr, ClientState)
Send a udp tracker announce for the InfoHash
.
SendUtMetadataMessage(PeerInfo, UtMetadataMessage)
Send a UtMetadata message.
DownloadedMetainfo(Metainfo)
We have finished downloading the given Metainfo
.
Trait Implementations
impl Clone for ODiscoveryMessage
[src]
fn clone(&self) -> ODiscoveryMessage
[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 ODiscoveryMessage
[src]
impl PartialEq for ODiscoveryMessage
[src]
fn eq(&self, __arg_0: &ODiscoveryMessage) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ODiscoveryMessage) -> bool
[src]
This method tests for !=
.