[][src]Struct networking::encryption::PubKeyPair

pub struct PubKeyPair { /* fields omitted */ }

this struct is used within ArtificePeer, that is transmittted over then network so as to provide the public key of the peer to the hsot like BigNum, this is an abstraction of RSAPublicKey that can be serialized using the serde crate

Implementations

impl PubKeyPair[src]

pub fn from_parts(n: BigNum, e: BigNum) -> Self[src]

pub fn n(&self) -> BigUint[src]

pub fn e(&self) -> BigUint[src]

Trait Implementations

impl Clone for PubKeyPair[src]

impl Debug for PubKeyPair[src]

impl<'de> Deserialize<'de> for PubKeyPair[src]

impl Eq for PubKeyPair[src]

impl Ord for PubKeyPair[src]

impl PartialEq<PubKeyPair> for PubKeyPair[src]

impl PartialOrd<PubKeyPair> for PubKeyPair[src]

impl Serialize for PubKeyPair[src]

impl StructuralEq for PubKeyPair[src]

impl StructuralPartialEq for PubKeyPair[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,