pub struct SourceSpecifier<'a> { /* private fields */ }
Expand description
Specifier for a source with version, architecture and suite
Implementations§
Source§impl<'a> SourceSpecifier<'a>
impl<'a> SourceSpecifier<'a>
Sourcepub fn new(source: &'a str) -> Self
pub fn new(source: &'a str) -> Self
Create a new source specifier for the given source package name.
Sourcepub fn with_version(&mut self, version: &'a PackageVersion) -> &mut Self
pub fn with_version(&mut self, version: &'a PackageVersion) -> &mut Self
Specify version of the source package.
Sourcepub fn with_suite(&mut self, suite: SuiteOrCodename) -> &mut Self
pub fn with_suite(&mut self, suite: SuiteOrCodename) -> &mut Self
Specify suite. If not set, unstable
is used.
Sourcepub fn with_architectures(
&mut self,
architectures: &[WBArchitecture],
) -> &mut Self
pub fn with_architectures( &mut self, architectures: &[WBArchitecture], ) -> &mut Self
Specify architectures. If not set, the nmu
will be scheduled for ANY
.
Sourcepub fn with_archive_architectures(
&mut self,
architectures: &[Architecture],
) -> &mut Self
pub fn with_archive_architectures( &mut self, architectures: &[Architecture], ) -> &mut Self
Specify architectures. If not set, the nmu
will be scheduled for ANY
.
Trait Implementations§
Source§impl<'a> Clone for SourceSpecifier<'a>
impl<'a> Clone for SourceSpecifier<'a>
Source§fn clone(&self) -> SourceSpecifier<'a>
fn clone(&self) -> SourceSpecifier<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for SourceSpecifier<'a>
impl<'a> Debug for SourceSpecifier<'a>
Source§impl Display for SourceSpecifier<'_>
impl Display for SourceSpecifier<'_>
Source§impl<'a> PartialEq for SourceSpecifier<'a>
impl<'a> PartialEq for SourceSpecifier<'a>
impl<'a> Eq for SourceSpecifier<'a>
impl<'a> StructuralPartialEq for SourceSpecifier<'a>
Auto Trait Implementations§
impl<'a> Freeze for SourceSpecifier<'a>
impl<'a> RefUnwindSafe for SourceSpecifier<'a>
impl<'a> Send for SourceSpecifier<'a>
impl<'a> Sync for SourceSpecifier<'a>
impl<'a> Unpin for SourceSpecifier<'a>
impl<'a> UnwindSafe for SourceSpecifier<'a>
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.