Enum bip_dht::message::response::ResponseType [] [src]

pub enum ResponseType<'a> {
    Ping(PingResponse<'a>),
    FindNode(FindNodeResponse<'a>),
    GetPeers(GetPeersResponse<'a>),
    AnnouncePeer(AnnouncePeerResponse<'a>),
}

Variants

Methods

impl<'a> ResponseType<'a>
[src]

Trait Implementations

impl<'a> Copy for ResponseType<'a>
[src]

impl<'a> Clone for ResponseType<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> PartialEq for ResponseType<'a>
[src]

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

This method tests for !=.

impl<'a> Eq for ResponseType<'a>
[src]

impl<'a> Hash for ResponseType<'a>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> Debug for ResponseType<'a>
[src]

Formats the value using the given formatter.