pub enum IDiscoveryMessage {
Control(ControlMessage),
DownloadMetainfo(InfoHash),
ReceivedUtMetadataMessage(PeerInfo, UtMetadataMessage),
}Expand description
Enumeration of discovery messages that can be sent to a discovery module.
Variants§
Control(ControlMessage)
Control message.
DownloadMetainfo(InfoHash)
Find peers and download the metainfo for the InfoHash.
ReceivedUtMetadataMessage(PeerInfo, UtMetadataMessage)
Received a UtMetadata message.
Trait Implementations§
Source§impl Clone for IDiscoveryMessage
impl Clone for IDiscoveryMessage
Source§fn clone(&self) -> IDiscoveryMessage
fn clone(&self) -> IDiscoveryMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IDiscoveryMessage
impl Debug for IDiscoveryMessage
Source§impl PartialEq for IDiscoveryMessage
impl PartialEq for IDiscoveryMessage
impl Eq for IDiscoveryMessage
impl StructuralPartialEq for IDiscoveryMessage
Auto Trait Implementations§
impl !Freeze for IDiscoveryMessage
impl RefUnwindSafe for IDiscoveryMessage
impl Send for IDiscoveryMessage
impl Sync for IDiscoveryMessage
impl Unpin for IDiscoveryMessage
impl UnwindSafe for IDiscoveryMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more