Struct bip_handshake::BTPeer [] [src]

pub struct BTPeer {
    // some fields omitted
}

Bittorrent TCP peer that has been handshaken.

Methods

impl BTPeer
[src]

fn new(stream: TcpStream, hash: InfoHash, pid: PeerId) -> BTPeer

Create a new BTPeer container.

fn destroy(self) -> (TcpStream, InfoHash, PeerId)

Destroy the BTPeer container and return the contained objects.

Trait Implementations

impl Debug for BTPeer
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.