Struct bip_utracker::scrape::ScrapeRequest
[−]
[src]
pub struct ScrapeRequest<'a> { /* fields omitted */ }
Scrape request sent from the client to the server.
Methods
impl<'a> ScrapeRequest<'a>
[src]
fn new() -> ScrapeRequest<'a>
Create a new ScrapeRequest.
fn from_bytes(bytes: &'a [u8]) -> IResult<&'a [u8], ScrapeRequest<'a>>
Construct a ScrapeRequest from the given bytes.
fn write_bytes<W>(&self, writer: W) -> Result<()> where
W: Write,
W: Write,
Write the ScrapeRequest to the given writer.
Ordering of the written InfoHash is identical to that of ScrapeRequest::iter().
fn insert(&mut self, hash: InfoHash)
Add the InfoHash to the current request.
fn iter<'b>(&'b self) -> ScrapeRequestIter<'b>
Iterator over all of the hashes in the request.
fn to_owned(&self) -> ScrapeRequest<'static>
Create an owned version of ScrapeRequest.
Trait Implementations
impl<'a> Clone for ScrapeRequest<'a>
[src]
fn clone(&self) -> ScrapeRequest<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> Debug for ScrapeRequest<'a>
[src]
impl<'a> PartialEq for ScrapeRequest<'a>
[src]
fn eq(&self, __arg_0: &ScrapeRequest<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ScrapeRequest<'a>) -> bool
This method tests for !=
.