Enum bip_handshake::Protocol [] [src]

pub enum Protocol {
    BitTorrent,
    Custom(Vec<u8>),
}

Protocol information transmitted as part of the handshake.

Variants

Methods

impl Protocol
[src]

[src]

Create a Protocol from the given bytes.

[src]

Write the Protocol out to the given writer.

[src]

Get the legth of the given protocol (does not include the length byte).

Trait Implementations

impl Clone for Protocol
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Protocol
[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 Protocol
[src]

impl Debug for Protocol
[src]

[src]

Formats the value using the given formatter.