pub enum ProtocolKind {
Ssh,
Sftp,
Ftp,
Rdp,
Vnc,
Postgres,
}Expand description
Canonical protocol tag for a managed connection.
Using an enum instead of a free-form string means every branch that inspects a connection is exhaustiveness-checked and callers can’t typo a tag.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ProtocolKind
impl Clone for ProtocolKind
Source§fn clone(&self) -> ProtocolKind
fn clone(&self) -> ProtocolKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProtocolKind
impl Debug for ProtocolKind
Source§impl PartialEq for ProtocolKind
impl PartialEq for ProtocolKind
Source§fn eq(&self, other: &ProtocolKind) -> bool
fn eq(&self, other: &ProtocolKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ProtocolKind
impl Eq for ProtocolKind
impl StructuralPartialEq for ProtocolKind
Auto Trait Implementations§
impl Freeze for ProtocolKind
impl RefUnwindSafe for ProtocolKind
impl Send for ProtocolKind
impl Sync for ProtocolKind
impl Unpin for ProtocolKind
impl UnsafeUnpin for ProtocolKind
impl UnwindSafe for ProtocolKind
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