pub struct NodeInfo {
pub net: NetType,
pub perm_id: Option<Identity>,
pub eph_id: Option<Identity>,
}
Expand description
Information about a connecting node. Includes the source network type from which the connection was made, and optionally the Identities used by the node.
Fields§
§net: NetType
The network info for this node
perm_id: Option<Identity>
Long-term Identity, notionally tied to the user of the node
eph_id: Option<Identity>
Ephemeral Identity, notionally tied to the node itself
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeInfo
impl RefUnwindSafe for NodeInfo
impl Send for NodeInfo
impl Sync for NodeInfo
impl Unpin for NodeInfo
impl UnwindSafe for NodeInfo
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