pub struct Cert<'a> { /* private fields */ }
Expand description
A certificate for a remote connection, viewable as one of CertHostkey
or
CertX509
currently.
Implementations
sourceimpl<'a> Cert<'a>
impl<'a> Cert<'a>
sourcepub fn as_hostkey(&self) -> Option<&CertHostkey<'a>>
pub fn as_hostkey(&self) -> Option<&CertHostkey<'a>>
Attempt to view this certificate as an SSH hostkey.
Returns None
if this is not actually an SSH hostkey.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Cert<'a>
impl<'a> !Send for Cert<'a>
impl<'a> !Sync for Cert<'a>
impl<'a> Unpin for Cert<'a>
impl<'a> UnwindSafe for Cert<'a>
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