Struct wgctrl_rs::KeyPair [−][src]
Represents a pair of private and public keys.
This struct is here for convenience of generating a complete keypair, e.g. for a new peer.
Fields
private: Key
The private key.
public: Key
The public key.
Methods
impl KeyPair
[src]
impl KeyPair
pub fn generate() -> Self
[src]
pub fn generate() -> Self
pub fn from_private(key: Key) -> Self
[src]
pub fn from_private(key: Key) -> Self
Trait Implementations
impl Debug for KeyPair
[src]
impl Debug for KeyPair
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for KeyPair
[src]
impl PartialEq for KeyPair
fn eq(&self, other: &KeyPair) -> bool
[src]
fn eq(&self, other: &KeyPair) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &KeyPair) -> bool
[src]
fn ne(&self, other: &KeyPair) -> bool
This method tests for !=
.
impl Eq for KeyPair
[src]
impl Eq for KeyPair
impl Clone for KeyPair
[src]
impl Clone for KeyPair