Struct wgctrl_rs::KeyPair[][src]

pub struct KeyPair {
    pub private: Key,
    pub public: Key,
}

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

The private key.

The public key.

Methods

impl KeyPair
[src]

Trait Implementations

impl Debug for KeyPair
[src]

Formats the value using the given formatter. Read more

impl PartialEq for KeyPair
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for KeyPair
[src]

impl Clone for KeyPair
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for KeyPair

impl Sync for KeyPair