pub struct PubKeyComp { /* private fields */ }
Expand description
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§
Trait Implementations§
Source§impl Clone for PubKeyComp
impl Clone for PubKeyComp
Source§fn clone(&self) -> PubKeyComp
fn clone(&self) -> PubKeyComp
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 PubKeyComp
impl Debug for PubKeyComp
Source§impl<'de> Deserialize<'de> for PubKeyComp
impl<'de> Deserialize<'de> for PubKeyComp
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 From<&PrivKeyComp> for PubKeyComp
impl From<&PrivKeyComp> for PubKeyComp
Source§fn from(priv_key: &PrivKeyComp) -> Self
fn from(priv_key: &PrivKeyComp) -> Self
Converts to this type from the input type.
Source§impl From<&RSAPrivateKey> for PubKeyComp
impl From<&RSAPrivateKey> for PubKeyComp
Source§fn from(private_key: &RSAPrivateKey) -> Self
fn from(private_key: &RSAPrivateKey) -> Self
Converts to this type from the input type.
Source§impl From<&RSAPublicKey> for PubKeyComp
impl From<&RSAPublicKey> for PubKeyComp
Source§fn from(public_key: &RSAPublicKey) -> Self
fn from(public_key: &RSAPublicKey) -> Self
Converts to this type from the input type.
Source§impl Ord for PubKeyComp
impl Ord for PubKeyComp
Source§fn cmp(&self, other: &PubKeyComp) -> Ordering
fn cmp(&self, other: &PubKeyComp) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<PubKeyComp> for RSAPublicKey
impl PartialEq<PubKeyComp> for RSAPublicKey
Source§impl PartialEq<RSAPublicKey> for PubKeyComp
impl PartialEq<RSAPublicKey> for PubKeyComp
Source§impl PartialEq for PubKeyComp
impl PartialEq for PubKeyComp
Source§impl PartialOrd for PubKeyComp
impl PartialOrd for PubKeyComp
Source§impl Serialize for PubKeyComp
impl Serialize for PubKeyComp
impl Eq for PubKeyComp
impl StructuralPartialEq for PubKeyComp
Auto Trait Implementations§
impl Freeze for PubKeyComp
impl RefUnwindSafe for PubKeyComp
impl Send for PubKeyComp
impl Sync for PubKeyComp
impl Unpin for PubKeyComp
impl UnwindSafe for PubKeyComp
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