pub enum Suite {
Unstable,
Testing(Option<Extension>),
Stable(Option<Extension>),
OldStable(Option<Extension>),
Experimental,
}
Expand description
Debian archive suites
This enum describes the suite names found in the Debian archive.
Variants§
Unstable
The unstable suite
Testing(Option<Extension>)
The testing suite
Stable(Option<Extension>)
The stable suite
OldStable(Option<Extension>)
The oldstable suite
Experimental
The experimental suite
Implementations§
Source§impl Suite
impl Suite
Sourcepub fn with_extension(&self, extension: Extension) -> Self
pub fn with_extension(&self, extension: Extension) -> Self
Extend suite with an extension archive.
An existing extension will overriden and the method has no effect forunstable
and experimental
.
Sourcepub fn without_extension(&self) -> Self
pub fn without_extension(&self) -> Self
Remove an extension archive from the suite.
The method has no effect forunstable
and experimental
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Suite
impl<'de> Deserialize<'de> for Suite
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Suite> for SuiteOrCodename
impl From<Suite> for SuiteOrCodename
Source§impl From<SuiteOrCodename> for Suite
impl From<SuiteOrCodename> for Suite
Source§fn from(value: SuiteOrCodename) -> Self
fn from(value: SuiteOrCodename) -> Self
Converts to this type from the input type.
impl Copy for Suite
impl Eq for Suite
impl StructuralPartialEq for Suite
Auto Trait Implementations§
impl Freeze for Suite
impl RefUnwindSafe for Suite
impl Send for Suite
impl Sync for Suite
impl Unpin for Suite
impl UnwindSafe for Suite
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.