Struct bip_utracker::option::URLDataOption
[−]
[src]
pub struct URLDataOption<'a> { /* fields omitted */ }
Concatenated PATH and QUERY of a UDP tracker URL.
Methods
impl<'a> URLDataOption<'a>
[src]
fn new(url_data: &'a [u8]) -> URLDataOption<'a>
[src]
Create a new URLDataOption from the given bytes.
Trait Implementations
impl<'a> Debug for URLDataOption<'a>
[src]
impl<'a> PartialEq for URLDataOption<'a>
[src]
fn eq(&self, __arg_0: &URLDataOption<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &URLDataOption<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> Eq for URLDataOption<'a>
[src]
impl<'a> Clone for URLDataOption<'a>
[src]
fn clone(&self) -> URLDataOption<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> AnnounceOption<'a> for URLDataOption<'a>
[src]
fn option_byte() -> u8
[src]
Byte specifying what option this is.
fn option_length(&self) -> usize
[src]
Length of the associated option data.
fn read_option(bytes: &'a [u8]) -> Option<URLDataOption<'a>>
[src]
Reads the option content from the given bytes.
fn write_option(&self, buffer: &mut [u8])
[src]
Writes the option payload into the given buffer.