pub struct NodeKeypair { /* private fields */ }Implementations§
Source§impl NodeKeypair
impl NodeKeypair
pub fn generate() -> SigningResult<Self>
pub fn generate_at(path: impl AsRef<Path>) -> SigningResult<Self>
pub fn from_path(path: impl AsRef<Path>) -> SigningResult<Self>
pub fn public_key_hex(&self) -> String
pub fn path(&self) -> &Path
Auto Trait Implementations§
impl Freeze for NodeKeypair
impl RefUnwindSafe for NodeKeypair
impl Send for NodeKeypair
impl Sync for NodeKeypair
impl Unpin for NodeKeypair
impl UnsafeUnpin for NodeKeypair
impl UnwindSafe for NodeKeypair
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