Struct ssh_key::Sha256Fingerprint
source · [−]pub struct Sha256Fingerprint(_);fingerprint only.Expand description
SSH key fingerprints calculated using the SHA-256 hash function.
Implementations
sourceimpl Sha256Fingerprint
impl Sha256Fingerprint
sourcepub fn new(digest_bytes: &[u8; 32]) -> Self
pub fn new(digest_bytes: &[u8; 32]) -> Self
Create a new SHA-256 fingerprint from the given binary digest.
Use [FromStr] to parse an existing Base64-encoded fingerprint.
Trait Implementations
sourceimpl Clone for Sha256Fingerprint
impl Clone for Sha256Fingerprint
sourcefn clone(&self) -> Sha256Fingerprint
fn clone(&self) -> Sha256Fingerprint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Sha256Fingerprint
impl Debug for Sha256Fingerprint
sourceimpl Display for Sha256Fingerprint
impl Display for Sha256Fingerprint
sourceimpl From<Sha256Fingerprint> for Fingerprint
impl From<Sha256Fingerprint> for Fingerprint
sourcefn from(fingerprint: Sha256Fingerprint) -> Fingerprint
fn from(fingerprint: Sha256Fingerprint) -> Fingerprint
Performs the conversion.
sourceimpl FromStr for Sha256Fingerprint
impl FromStr for Sha256Fingerprint
sourceimpl Ord for Sha256Fingerprint
impl Ord for Sha256Fingerprint
sourceimpl PartialEq<Sha256Fingerprint> for Sha256Fingerprint
impl PartialEq<Sha256Fingerprint> for Sha256Fingerprint
sourcefn eq(&self, other: &Sha256Fingerprint) -> bool
fn eq(&self, other: &Sha256Fingerprint) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Sha256Fingerprint) -> bool
fn ne(&self, other: &Sha256Fingerprint) -> bool
This method tests for !=.
sourceimpl PartialOrd<Sha256Fingerprint> for Sha256Fingerprint
impl PartialOrd<Sha256Fingerprint> for Sha256Fingerprint
sourcefn partial_cmp(&self, other: &Sha256Fingerprint) -> Option<Ordering>
fn partial_cmp(&self, other: &Sha256Fingerprint) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl TryFrom<&'_ PublicKey> for Sha256Fingerprint
impl TryFrom<&'_ PublicKey> for Sha256Fingerprint
sourceimpl TryFrom<PublicKey> for Sha256Fingerprint
impl TryFrom<PublicKey> for Sha256Fingerprint
impl Copy for Sha256Fingerprint
impl Eq for Sha256Fingerprint
impl StructuralEq for Sha256Fingerprint
impl StructuralPartialEq for Sha256Fingerprint
Auto Trait Implementations
impl RefUnwindSafe for Sha256Fingerprint
impl Send for Sha256Fingerprint
impl Sync for Sha256Fingerprint
impl Unpin for Sha256Fingerprint
impl UnwindSafe for Sha256Fingerprint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more