pub struct InstallOnlyLimit(/* private fields */);Expand description
Maximum number of install-only kernel packages to keep (default 3, cannot be 1).
§Examples
use dnf_repofile::InstallOnlyLimit;
let limit = InstallOnlyLimit::try_new(3).unwrap();Implementations§
Source§impl InstallOnlyLimit
impl InstallOnlyLimit
pub fn try_new(raw_value: u32) -> Result<Self, InstallOnlyLimitError>
Source§impl InstallOnlyLimit
impl InstallOnlyLimit
pub fn into_inner(self) -> u32
Trait Implementations§
Source§impl Clone for InstallOnlyLimit
impl Clone for InstallOnlyLimit
Source§fn clone(&self) -> InstallOnlyLimit
fn clone(&self) -> InstallOnlyLimit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstallOnlyLimit
impl Debug for InstallOnlyLimit
Source§impl Default for InstallOnlyLimit
impl Default for InstallOnlyLimit
Source§impl Deref for InstallOnlyLimit
impl Deref for InstallOnlyLimit
Source§impl Display for InstallOnlyLimit
impl Display for InstallOnlyLimit
Source§impl PartialEq for InstallOnlyLimit
impl PartialEq for InstallOnlyLimit
Source§fn eq(&self, other: &InstallOnlyLimit) -> bool
fn eq(&self, other: &InstallOnlyLimit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InstallOnlyLimit
impl Eq for InstallOnlyLimit
impl StructuralPartialEq for InstallOnlyLimit
Auto Trait Implementations§
impl Freeze for InstallOnlyLimit
impl RefUnwindSafe for InstallOnlyLimit
impl Send for InstallOnlyLimit
impl Sync for InstallOnlyLimit
impl Unpin for InstallOnlyLimit
impl UnsafeUnpin for InstallOnlyLimit
impl UnwindSafe for InstallOnlyLimit
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.