Struct bip_peer::messages::ExtendedMessage [] [src]

pub struct ExtendedMessage { /* fields omitted */ }

Message for notifying peers of extensions we support.

See http://www.bittorrent.org/beps/bep_0010.html.

Methods

impl ExtendedMessage
[src]

[src]

Create an ExtendedMessage from an ExtendedMessageBuilder.

[src]

Parse an ExtendedMessage from some raw bencode of the given length.

[src]

Write the ExtendedMessage out to the given writer.

[src]

Get the size of the bencode portion of this message.

[src]

Query for the id corresponding to the given ExtendedType.

[src]

Retrieve our id from the message.

[src]

Retrieve our tcp port from the message.

[src]

Retrieve their ip address from the message.

[src]

Retrieve our ipv6 address from the message.

[src]

Retrieve our ipv4 address from the message.

[src]

Retrieve our max queued requests from the message.

[src]

Retrieve the info dictionary metadata size from the message.

[src]

Retrieve a raw BencodeRef representing the current message.

Trait Implementations

impl Clone for ExtendedMessage
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ExtendedMessage
[src]

[src]

Formats the value using the given formatter.

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