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]

Create a Protocol from the given bytes.

Write the Protocol out to the given writer.

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

Trait Implementations

impl Clone for Protocol
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Protocol
[src]

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

This method tests for !=.

impl Eq for Protocol
[src]

impl Debug for Protocol
[src]

Formats the value using the given formatter.