Struct distro_info::UbuntuDistroInfo [−][src]
pub struct UbuntuDistroInfo { /* fields omitted */ }
Methods
impl UbuntuDistroInfo
[src]
impl UbuntuDistroInfo
A struct capturing the Ubuntu releases stored in /usr/share/distro-info/ubuntu.csv
pub fn new() -> Result<UbuntuDistroInfo, Error>
[src]
pub fn new() -> Result<UbuntuDistroInfo, Error>
Open /usr/share/distro-info/ubuntu.csv
and parse the Ubuntu release data contained
therein
pub fn released<'a>(&'a self, date: NaiveDate) -> Vec<&'a DistroRelease>
[src]
pub fn released<'a>(&'a self, date: NaiveDate) -> Vec<&'a DistroRelease>
Returns a vector of DistroRelease
s for Ubuntu releases that were releasedat the given
date
pub fn supported<'a>(&'a self, date: NaiveDate) -> Vec<&'a DistroRelease>
[src]
pub fn supported<'a>(&'a self, date: NaiveDate) -> Vec<&'a DistroRelease>
Returns a vector of DistroRelease
s for Ubuntu releases that were released and supported at
the given date
pub fn unsupported<'a>(&'a self, date: NaiveDate) -> Vec<&'a DistroRelease>
[src]
pub fn unsupported<'a>(&'a self, date: NaiveDate) -> Vec<&'a DistroRelease>
Returns a vector of DistroRelease
s for Ubuntu releases that were released but no longer
supported at the given date
pub fn devel<'a>(&'a self, date: NaiveDate) -> Vec<&'a DistroRelease>
[src]
pub fn devel<'a>(&'a self, date: NaiveDate) -> Vec<&'a DistroRelease>
Returns a vector of DistroRelease
s for Ubuntu releases that were in development at the
given date
pub fn all_at<'a>(&'a self, date: NaiveDate) -> Vec<&'a DistroRelease>
[src]
pub fn all_at<'a>(&'a self, date: NaiveDate) -> Vec<&'a DistroRelease>
Returns a vector of DistroRelease
s for Ubuntu releases that had been created at the given
date
pub fn latest<'a>(&'a self, date: NaiveDate) -> &DistroRelease
[src]
pub fn latest<'a>(&'a self, date: NaiveDate) -> &DistroRelease
Returns a DistroRelease
for the latest Ubuntu release at the given date
pub fn iter(&self) -> Iter<DistroRelease>
[src]
pub fn iter(&self) -> Iter<DistroRelease>
Trait Implementations
impl IntoIterator for UbuntuDistroInfo
[src]
impl IntoIterator for UbuntuDistroInfo
type Item = DistroRelease
The type of the elements being iterated over.
type IntoIter = IntoIter<DistroRelease>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations
impl Send for UbuntuDistroInfo
impl Send for UbuntuDistroInfo
impl Sync for UbuntuDistroInfo
impl Sync for UbuntuDistroInfo