Enum git2::cert::SshHostKeyType
source · #[non_exhaustive]pub enum SshHostKeyType {
Unknown = 0,
Rsa = 1,
Dss = 2,
Ecdsa256 = 3,
Ecdsa384 = 4,
Ecdsa521 = 5,
Ed255219 = 6,
}
Expand description
The SSH host key type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown = 0
Unknown key type
Rsa = 1
RSA key type
Dss = 2
DSS key type
Ecdsa256 = 3
ECDSA 256 key type
Ecdsa384 = 4
ECDSA 384 key type
Ecdsa521 = 5
ECDSA 521 key type
Ed255219 = 6
ED25519 key type
Implementations§
Trait Implementations§
source§impl Clone for SshHostKeyType
impl Clone for SshHostKeyType
source§fn clone(&self) -> SshHostKeyType
fn clone(&self) -> SshHostKeyType
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 SshHostKeyType
impl Debug for SshHostKeyType
impl Copy for SshHostKeyType
Auto Trait Implementations§
impl Freeze for SshHostKeyType
impl RefUnwindSafe for SshHostKeyType
impl Send for SshHostKeyType
impl Sync for SshHostKeyType
impl Unpin for SshHostKeyType
impl UnwindSafe for SshHostKeyType
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