Struct tor_interface::tor_crypto::X25519PublicKey
source · pub struct X25519PublicKey { /* private fields */ }
Implementations§
source§impl X25519PublicKey
impl X25519PublicKey
pub fn from_private_key(private_key: &X25519PrivateKey) -> X25519PublicKey
pub fn from_raw(raw: &[u8; 32]) -> X25519PublicKey
pub fn from_base32(base32: &str) -> Result<X25519PublicKey, Error>
pub fn to_base32(&self) -> String
pub fn as_bytes(&self) -> &[u8; 32]
Trait Implementations§
source§impl Clone for X25519PublicKey
impl Clone for X25519PublicKey
source§fn clone(&self) -> X25519PublicKey
fn clone(&self) -> X25519PublicKey
Returns a copy of the value. Read more
1.0.0 · 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 X25519PublicKey
impl Debug for X25519PublicKey
source§impl Hash for X25519PublicKey
impl Hash for X25519PublicKey
source§impl PartialEq for X25519PublicKey
impl PartialEq for X25519PublicKey
source§fn eq(&self, other: &X25519PublicKey) -> bool
fn eq(&self, other: &X25519PublicKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for X25519PublicKey
impl StructuralPartialEq for X25519PublicKey
Auto Trait Implementations§
impl Freeze for X25519PublicKey
impl RefUnwindSafe for X25519PublicKey
impl Send for X25519PublicKey
impl Sync for X25519PublicKey
impl Unpin for X25519PublicKey
impl UnwindSafe for X25519PublicKey
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