pub struct WgPublicKey(pub [u8; 32]);Expand description
Wire-form WireGuard X25519 public key.
Carries the raw 32 bytes only; the protocol crate never sees the
matching private key. The richer in-memory form (with
x25519_dalek::PublicKey accessors and base64 helpers) lives in
bibeam_crypto::WgPublicKey; see the module-level docs for why the
two types are deliberately parallel.
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl Clone for WgPublicKey
impl Clone for WgPublicKey
Source§fn clone(&self) -> WgPublicKey
fn clone(&self) -> WgPublicKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WgPublicKey
impl Debug for WgPublicKey
Source§impl<'de> Deserialize<'de> for WgPublicKey
impl<'de> Deserialize<'de> for WgPublicKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for WgPublicKey
impl Hash for WgPublicKey
Source§impl PartialEq for WgPublicKey
impl PartialEq for WgPublicKey
Source§fn eq(&self, other: &WgPublicKey) -> bool
fn eq(&self, other: &WgPublicKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WgPublicKey
impl Serialize for WgPublicKey
impl Copy for WgPublicKey
impl Eq for WgPublicKey
impl StructuralPartialEq for WgPublicKey
Auto Trait Implementations§
impl Freeze for WgPublicKey
impl RefUnwindSafe for WgPublicKey
impl Send for WgPublicKey
impl Sync for WgPublicKey
impl Unpin for WgPublicKey
impl UnsafeUnpin for WgPublicKey
impl UnwindSafe for WgPublicKey
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