pub struct PairedNode {
pub local: NodeId,
pub remote: NodeDescription,
pub tokens: TokenStore,
pub details: Option<ConnectionDetails>,
}Available on crate feature
connect-server only.Expand description
One node this endpoint is paired with.
Fields§
§local: NodeIdWhich of our nodes.
remote: NodeDescriptionWho they are.
tokens: TokenStoreThe access tokens that open the door, newest first.
details: Option<ConnectionDetails>What we told them about where to connect, if we are the communication server.
Trait Implementations§
Source§impl Clone for PairedNode
impl Clone for PairedNode
Source§fn clone(&self) -> PairedNode
fn clone(&self) -> PairedNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PairedNode
impl RefUnwindSafe for PairedNode
impl Send for PairedNode
impl Sync for PairedNode
impl Unpin for PairedNode
impl UnsafeUnpin for PairedNode
impl UnwindSafe for PairedNode
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