#[non_exhaustive]#[repr(u8)]pub enum MajorVersion {
RFC8907 = 12,
}Expand description
The major version of the TACACS+ protocol.
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.
RFC8907 = 12
The only current major version specified in RFC8907.
Trait Implementations§
Source§impl Clone for MajorVersion
impl Clone for MajorVersion
Source§fn clone(&self) -> MajorVersion
fn clone(&self) -> MajorVersion
Returns a duplicate 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 MajorVersion
impl Debug for MajorVersion
Source§impl Display for MajorVersion
impl Display for MajorVersion
Source§impl Hash for MajorVersion
impl Hash for MajorVersion
Source§impl Ord for MajorVersion
impl Ord for MajorVersion
Source§fn cmp(&self, other: &MajorVersion) -> Ordering
fn cmp(&self, other: &MajorVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MajorVersion
impl PartialEq for MajorVersion
Source§impl PartialOrd for MajorVersion
impl PartialOrd for MajorVersion
impl Copy for MajorVersion
impl Eq for MajorVersion
impl StructuralPartialEq for MajorVersion
Auto Trait Implementations§
impl Freeze for MajorVersion
impl RefUnwindSafe for MajorVersion
impl Send for MajorVersion
impl Sync for MajorVersion
impl Unpin for MajorVersion
impl UnwindSafe for MajorVersion
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