Struct bip_utracker::announce::AnnounceRequest [] [src]

pub struct AnnounceRequest<'a> { /* fields omitted */ }

Announce request sent from the client to the server.

IPv6 is supported but is not standard.

Methods

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

Create a new AnnounceRequest.

Construct an IPv4 AnnounceRequest from the given bytes.

Construct an IPv6 AnnounceRequest from the given bytes.

Write the AnnounceRequest to the given writer.

InfoHash of the current request.

PeerId of the current request.

State reported by the client in the given request.

Source address to send the response to.

Unique key randomized by the client that the server can use.

Number of peers desired by the client.

Port to send the response to.

Set of AnnounceOptions supplied in the request.

Create an owned version of AnnounceRequest.

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for AnnounceRequest<'a>
[src]

Formats the value using the given formatter.

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