Struct bip_utracker::scrape::ScrapeResponse [] [src]

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

Scrape response sent from the server to the client.

Methods

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

Create a new ScrapeResponse.

Construct a ScrapeResponse from the given bytes.

Write the ScrapeResponse to the given writer.

Ordering of the written stats is identical to that of ScrapeResponse::iter().

Add the scrape statistics to the current response.

Iterator over each status for every InfoHash in the request.

Ordering of the status corresponds to the ordering of the InfoHash in the initial request.

Create an owned version of ScrapeResponse.

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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