Enum ubuntu_version::Codename
source · [−]pub enum Codename {
Bionic,
Cosmic,
Disco,
Eoan,
Focal,
Groovy,
Hirsute,
Impish,
Jammy,
}
Expand description
The codename associated with an Ubuntu version.
Variants
Bionic
Cosmic
Disco
Eoan
Focal
Groovy
Hirsute
Impish
Jammy
Implementations
sourceimpl Codename
impl Codename
sourcepub fn release_date(self) -> (u32, u32, u32)
pub fn release_date(self) -> (u32, u32, u32)
Returns the release date in a (year, month, date)
format
sourcepub fn release_timestamp(self) -> u64
pub fn release_timestamp(self) -> u64
When this was released, as the time in seconds since the Unix Epoch
Trait Implementations
impl Copy for Codename
impl Eq for Codename
impl StructuralEq for Codename
impl StructuralPartialEq for Codename
Auto Trait Implementations
impl RefUnwindSafe for Codename
impl Send for Codename
impl Sync for Codename
impl Unpin for Codename
impl UnwindSafe for Codename
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more