[][src]Enum ubuntu_version::Codename

pub enum Codename {
    Bionic,
    Cosmic,
    Disco,
    Eoan,
    Focal,
}

The codename associated with an Ubuntu version.

Variants

Bionic
Cosmic
Disco
Eoan
Focal

Methods

impl Codename[src]

pub fn eol_date(self) -> (u32, u32, u32)[src]

The date when this release is to be, or was, EOL'd.

pub fn release_date(self) -> (u32, u32, u32)[src]

Returns the release date in a (year, month, date) format

pub fn release_timestamp(self) -> u64[src]

When this was released, as the time in seconds since the Unix Epoch

Trait Implementations

impl Clone for Codename[src]

impl Copy for Codename[src]

impl Debug for Codename[src]

impl Display for Codename[src]

impl Eq for Codename[src]

impl From<Codename> for &'static str[src]

impl From<Codename> for Version[src]

impl FromStr for Codename[src]

type Err = CodenameParseError

The associated error which can be returned from parsing.

impl Hash for Codename[src]

impl PartialEq<Codename> for Codename[src]

impl StructuralEq for Codename[src]

impl StructuralPartialEq for Codename[src]

impl TryFrom<Version> for Codename[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.