Struct backroll_transport::Peers [−][src]
Expand description
A keyed mapping of Peers with ownership semantics.
Dropping will disconnect all owned peers.
Implementations
Creates a new unbounded peer pair and stores one end, mapping it to the provided ID, returning the other end.
If a peer was previous stored at the given ID, it will be replaced and disconnected.
Creates an bounded peer pair and stores one end, mapping it to the provided ID, returning the other end.
If a peer was previous stored at the given ID, it will be dropped and replaced.
Disconnects and removes a connection by it’s ID
A no-op if there no Peer with the given ID.
Removes all peers that are disconnected.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Peers<T>
impl<T> UnwindSafe for Peers<T> where
T: UnwindSafe,