pub struct Connection { /* private fields */ }
Expand description
A connection is a group of streams that span from one node to another on the circuit network.
When we establish a network of circuit nodes, we can create a stream from any one to any other. These streams are independent, however; they have no name or identifier, nor anything else by which you might group them.
A Connection
is a link from a node to a peer that we can obtain streams from, just as we can
from the Node
itself, but the streams have IDs which are in a namespace unique to the
connection. Multiple connections can exist per node, and each sees only the streams related to
itself.
There’s a small bit of added protocol associated with this, so there will be some change to traffic on the wire.
Implementations§
Trait Implementations§
Source§impl Clone for Connection
impl Clone for Connection
Source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for Connection
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)