[][src]Struct libp2p::noise::PublicKey

pub struct PublicKey<T> { /* fields omitted */ }

ECC public key.

Methods

impl PublicKey<Ed25519>[src]

pub fn from_core(key: &PublicKey) -> Result<PublicKey<Ed25519>, NoiseError>[src]

Attempt to construct an Ed25519 public key from a libp2p_core::PublicKey.

pub fn into_curve_25519(self) -> PublicKey<Curve25519>[src]

Convert this Edwards 25519 public key into a Curve 25519 public key.

Trait Implementations

impl<T> Debug for PublicKey<T> where
    T: Debug
[src]

impl<T> Eq for PublicKey<T> where
    T: Eq
[src]

impl<T> PartialEq<PublicKey<T>> for PublicKey<T> where
    T: PartialEq<T>, 
[src]

impl<T> Clone for PublicKey<T> where
    T: Clone
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> AsRef<[u8]> for PublicKey<T>[src]

Auto Trait Implementations

impl<T> Send for PublicKey<T> where
    T: Send

impl<T> Sync for PublicKey<T> where
    T: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<T> ProtocolName for T where
    T: AsRef<[u8]>, 
[src]

impl<T> Erased for T

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.