Struct p2p::Handle [] [src]

pub struct Handle { /* fields omitted */ }

Handle to the HolePunchMediator.

Using this handle, the user can provide peer rendezvous information to begin hole punching. The handle is flexible enough to invoke hole punching either from another thread or from the event loop thread. The choice is up to the user.

Dropping this handle will clean up all the internal states associated with this handle and the entire HolePunchMediator for this handle will terminate gracefully.

Methods

impl Handle
[src]

Fire hole punch request from a non-event loop thread.

Request hole punch from within the event loop thread.

Obtain the token associated with the HolePunchMediator to which this is a handle.

Trait Implementations

impl Drop for Handle
[src]

A method called when the value goes out of scope. Read more