Struct proj_crypto::asymmetric::key_id::PublicKeyId
[−]
[src]
pub struct PublicKeyId { pub digest: Digest, }
Public Key - just an alias. Implements drop() so the memory will be wiped when it goes out of scope The type of the identifier used to specify the other party's public key. This has to be a custom struct so that I can implement std::hash::Hash
Fields
digest: Digest
The structure just encapsulates this sha256 digest
Trait Implementations
impl PartialEq for PublicKeyId
[src]
fn eq(&self, __arg_0: &PublicKeyId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PublicKeyId) -> bool
This method tests for !=
.
impl Eq for PublicKeyId
[src]
impl Debug for PublicKeyId
[src]
impl Clone for PublicKeyId
[src]
fn clone(&self) -> PublicKeyId
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Hash for PublicKeyId
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.