pub enum Purpose {
Identity,
Connect,
}Expand description
What a node key is for. Each key serves exactly one purpose.
Variants§
Identity
A node’s identity key, the key its node_id derives from and that signs its bindings, status statements and signed objects.
Connect
A node’s CONNECT key, bound to its identity key, which signs the proof of each connection it makes.
Implementations§
Trait Implementations§
impl Copy for Purpose
impl Eq for Purpose
impl StructuralPartialEq for Purpose
Auto Trait Implementations§
impl Freeze for Purpose
impl RefUnwindSafe for Purpose
impl Send for Purpose
impl Sync for Purpose
impl Unpin for Purpose
impl UnsafeUnpin for Purpose
impl UnwindSafe for Purpose
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