Struct bip_peer::messages::PortMessage
[−]
[src]
pub struct PortMessage { /* fields omitted */ }
Message for notifying a peer of our DHT port.
Methods
impl PortMessage
[src]
fn new(port: u16) -> PortMessage
[src]
fn parse_bytes(_input: (), bytes: Bytes) -> IResult<(), Result<PortMessage>>
[src]
fn write_bytes<W>(&self, writer: W) -> Result<()> where
W: Write,
[src]
W: Write,
Trait Implementations
impl Copy for PortMessage
[src]
impl Clone for PortMessage
[src]
fn clone(&self) -> PortMessage
[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 Debug for PortMessage
[src]
impl Hash for PortMessage
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for PortMessage
[src]
fn eq(&self, __arg_0: &PortMessage) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PortMessage) -> bool
[src]
This method tests for !=
.