Enum bip_dht::message::MessageType [] [src]

pub enum MessageType<'a> {
    Request(RequestType<'a>),
    Response(ResponseType<'a>),
    Error(ErrorMessage<'a>),
}

Variants

Methods

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

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Formats the value using the given formatter.