[][src]Struct networking::encryption::PubKeyComp

pub struct PubKeyComp { /* 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 PubKeyComp[src]

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

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

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

Trait Implementations

impl Clone for PubKeyComp[src]

impl Debug for PubKeyComp[src]

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

impl Eq for PubKeyComp[src]

impl<'_> From<&'_ PrivKeyComp> for PubKeyComp[src]

impl<'_> From<&'_ RSAPrivateKey> for PubKeyComp[src]

impl<'_> From<&'_ RSAPublicKey> for PubKeyComp[src]

impl Ord for PubKeyComp[src]

impl PartialEq<PubKeyComp> for PubKeyComp[src]

impl PartialEq<PubKeyComp> for RSAPublicKey[src]

impl PartialEq<RSAPublicKey> for PubKeyComp[src]

impl PartialOrd<PubKeyComp> for PubKeyComp[src]

impl Serialize for PubKeyComp[src]

impl StructuralEq for PubKeyComp[src]

impl StructuralPartialEq for PubKeyComp[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<V> HashValue for V where
    V: 'static + Debug + Serialize + DeserializeOwned + Send + Clone + Sync
[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>,