pub struct Cert<'a> { /* private fields */ }
Expand description
A certificate for a remote connection, viewable as one of CertHostkey
or
CertX509
currently.
Implementations§
source§impl<'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§
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