Enum bip_peer::messages::ExtendedType [] [src]

pub enum ExtendedType {
    UtMetadata,
    UtPex,
    Custom(String),
}

Enumeration of extended types activated via ExtendedMessage.

Variants

Methods

impl ExtendedType
[src]

[src]

Create an ExtendedType from the given identifier.

[src]

Retrieve the message id corresponding to the given ExtendedType.

Trait Implementations

impl Clone for ExtendedType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ExtendedType
[src]

[src]

Formats the value using the given formatter.

impl Hash for ExtendedType
[src]

[src]

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

1.3.0
[src]

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

impl PartialEq for ExtendedType
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for ExtendedType
[src]