Enum bip_dht::message::request::RequestType [] [src]

pub enum RequestType<'a> {
    Ping(PingRequest<'a>),
    FindNode(FindNodeRequest<'a>),
    GetPeers(GetPeersRequest<'a>),
    AnnouncePeer(AnnouncePeerRequest<'a>),
}

Variants

Methods

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

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> PartialEq for RequestType<'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 RequestType<'a>
[src]

impl<'a> Hash for RequestType<'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 RequestType<'a>
[src]

Formats the value using the given formatter.