Struct distro_info::UbuntuDistroInfo
source · pub struct UbuntuDistroInfo { /* private fields */ }
Trait Implementations§
source§impl DistroInfo for UbuntuDistroInfo
impl DistroInfo for UbuntuDistroInfo
source§fn from_vec(releases: Vec<DistroRelease>) -> Self
fn from_vec(releases: Vec<DistroRelease>) -> Self
Initialise an UbuntuDistroInfo struct from a vector of DistroReleases
fn distro(&self) -> &Distro
fn releases(&self) -> &Vec<DistroRelease>
source§fn from_csv_reader<T: Read>(rdr: Reader<T>) -> Result<Self, Error>
fn from_csv_reader<T: Read>(rdr: Reader<T>) -> Result<Self, Error>
Read records from the given CSV reader to create a Debian/UbuntuDistroInfo object Read more
source§fn new() -> Result<Self, Error>
fn new() -> Result<Self, Error>
Open this distro’s CSV file and parse the release data contained therein
source§fn all_at(&self, date: NaiveDate) -> Vec<&DistroRelease>
fn all_at(&self, date: NaiveDate) -> Vec<&DistroRelease>
Returns a vector of
DistroRelease
s for releases that had been created at the given datesource§fn released(&self, date: NaiveDate) -> Vec<&DistroRelease>
fn released(&self, date: NaiveDate) -> Vec<&DistroRelease>
Returns a vector of
DistroRelease
s for releases that were released at the given datesource§fn supported(&self, date: NaiveDate) -> Vec<&DistroRelease>
fn supported(&self, date: NaiveDate) -> Vec<&DistroRelease>
Returns a vector of
DistroRelease
s for releases that were released and supported at the
given datesource§fn unsupported(&self, date: NaiveDate) -> Vec<&DistroRelease>
fn unsupported(&self, date: NaiveDate) -> Vec<&DistroRelease>
Returns a vector of
DistroRelease
s for releases that were released but no longer
supported at the given datesource§fn ubuntu_devel(&self, date: NaiveDate) -> Vec<&DistroRelease>
fn ubuntu_devel(&self, date: NaiveDate) -> Vec<&DistroRelease>
Returns a vector of
DistroRelease
s for releases that were in development at the given
datesource§fn debian_devel(&self, date: NaiveDate) -> Vec<&DistroRelease>
fn debian_devel(&self, date: NaiveDate) -> Vec<&DistroRelease>
Returns a vector of
DistroRelease
s for releases that were in development at the given
datesource§fn latest(&self, date: NaiveDate) -> Option<&DistroRelease>
fn latest(&self, date: NaiveDate) -> Option<&DistroRelease>
Returns a
DistroRelease
for the latest supported, non-EOL release at the given datefn iter(&self) -> Iter<'_, DistroRelease>
source§impl IntoIterator for UbuntuDistroInfo
impl IntoIterator for UbuntuDistroInfo
Auto Trait Implementations§
impl RefUnwindSafe for UbuntuDistroInfo
impl Send for UbuntuDistroInfo
impl Sync for UbuntuDistroInfo
impl Unpin for UbuntuDistroInfo
impl UnwindSafe for UbuntuDistroInfo
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