Enum bip_utracker::ClientResponse [] [src]

pub enum ClientResponse {
    Announce(AnnounceResponse<'static>),
    Scrape(ScrapeResponse<'static>),
}

Response received by the TrackerClient.

Variants

Announce response.

Scrape response.

Methods

impl ClientResponse
[src]

[src]

Optionally return a reference to the underyling AnnounceResponse.

If you know that the token associated with the response was retrived from an AnnounceRequest, then unwrapping this value is guaranteed to succeed.

[src]

Optionally return a reference to the underyling ScrapeResponse.

If you know that the token associated with the response was retrived from a ScrapeRequest, then unwrapping this value is guaranteed to succeed.

Trait Implementations

impl Debug for ClientResponse
[src]

[src]

Formats the value using the given formatter.