Struct bip_dht::message::get_peers::GetPeersRequest
[−]
[src]
pub struct GetPeersRequest<'a> { /* fields omitted */ }
Methods
impl<'a> GetPeersRequest<'a>
[src]
fn new(
trans_id: &'a [u8],
node_id: NodeId,
info_hash: InfoHash
) -> GetPeersRequest<'a>
trans_id: &'a [u8],
node_id: NodeId,
info_hash: InfoHash
) -> GetPeersRequest<'a>
fn from_parts(
rqst_root: &Dictionary<'a, Bencode<'a>>,
trans_id: &'a [u8]
) -> Result<GetPeersRequest<'a>, DhtError>
rqst_root: &Dictionary<'a, Bencode<'a>>,
trans_id: &'a [u8]
) -> Result<GetPeersRequest<'a>, DhtError>
fn transaction_id(&self) -> &'a [u8]
fn node_id(&self) -> NodeId
fn info_hash(&self) -> InfoHash
fn encode(&self) -> Vec<u8>
Trait Implementations
impl<'a> Copy for GetPeersRequest<'a>
[src]
impl<'a> Clone for GetPeersRequest<'a>
[src]
fn clone(&self) -> GetPeersRequest<'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> PartialEq for GetPeersRequest<'a>
[src]
fn eq(&self, __arg_0: &GetPeersRequest<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GetPeersRequest<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for GetPeersRequest<'a>
[src]
impl<'a> Hash for GetPeersRequest<'a>
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more