Struct bip_handshake::InitiateMessage
[−]
[src]
pub struct InitiateMessage { /* fields omitted */ }
Message used to initiate a handshake with the Handshaker
.
Methods
impl InitiateMessage
[src]
fn new(prot: Protocol, hash: InfoHash, addr: SocketAddr) -> InitiateMessage
[src]
Create a new InitiateMessage
.
fn protocol(&self) -> &Protocol
[src]
Protocol that we want to connect to the peer with.
fn hash(&self) -> &InfoHash
[src]
Hash that we are interested in from the peer.
fn address(&self) -> &SocketAddr
[src]
Address that we should connect to for the peer.
fn into_parts(self) -> (Protocol, InfoHash, SocketAddr)
[src]
Break the InitiateMessage
up into its parts.
Trait Implementations
impl PartialEq for InitiateMessage
[src]
fn eq(&self, __arg_0: &InitiateMessage) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &InitiateMessage) -> bool
[src]
This method tests for !=
.
impl Eq for InitiateMessage
[src]
impl Debug for InitiateMessage
[src]
impl Clone for InitiateMessage
[src]
fn clone(&self) -> InitiateMessage
[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