Struct bip_dht::message::compact_info::CompactValueInfo
[−]
[src]
pub struct CompactValueInfo<'a> { /* fields omitted */ }
Methods
impl<'a> CompactValueInfo<'a>
[src]
fn new(values: &'a [Bencode<'a>]) -> LengthResult<CompactValueInfo<'a>>
Creates a new CompactValueInfo container for the given values.
It is VERY important that the values have been checked to contain only bencoded bytes and not other types as that will result in a panic.
fn values(&self) -> &'a [Bencode<'a>]
Trait Implementations
impl<'a> Copy for CompactValueInfo<'a>
[src]
impl<'a> Clone for CompactValueInfo<'a>
[src]
fn clone(&self) -> CompactValueInfo<'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 CompactValueInfo<'a>
[src]
fn eq(&self, __arg_0: &CompactValueInfo<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CompactValueInfo<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for CompactValueInfo<'a>
[src]
impl<'a> Hash for CompactValueInfo<'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
impl<'a> Debug for CompactValueInfo<'a>
[src]
impl<'a> IntoIterator for CompactValueInfo<'a>
[src]
type Item = SocketAddrV4
The type of the elements being iterated over.
type IntoIter = CompactValueInfoIter<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more