pub trait Handle: 'static + Copy + Send + Debug {
    fn from_remote_address(remote_addr: RemoteAddress) -> Self;
    fn remote_address(&self) -> RemoteAddress;
    fn local_address(&self) -> LocalAddress;
    fn eq(&self, other: &Self) -> bool;
    fn strict_eq(&self, other: &Self) -> bool;
}
Expand description

An interface for an object that represents a unique path between two endpoints

Required Methods

Creates a Handle from a RemoteAddress

Returns the remote address for the given handle

Returns the local address for the given handle

Returns true if the two handles are equal from a network perspective

This function is used to determine if a connection has migrated to another path.

Returns true if the two handles are strictly equal to each other, i.e. byte-for-byte.

Implementors