pub struct NodeIdentity {
pub public: PublicIdentity,
/* private fields */
}Expand description
The identity a running mesh signs with: the public half plus the signing key.
Fields§
§public: PublicIdentityThe public half, as an advertisement carries it.
Implementations§
Source§impl NodeIdentity
impl NodeIdentity
Sourcepub fn load_or_create(path: &Path) -> Result<Self, MeshError>
pub fn load_or_create(path: &Path) -> Result<Self, MeshError>
Load the identity at path, creating it (directories included) when absent.
A malformed file is an error, never silently replaced: an identity is the one
thing a node must not lose by accident.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeIdentity
impl RefUnwindSafe for NodeIdentity
impl Send for NodeIdentity
impl Sync for NodeIdentity
impl Unpin for NodeIdentity
impl UnsafeUnpin for NodeIdentity
impl UnwindSafe for NodeIdentity
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