pub struct MetadataTimerSync(/* private fields */);Expand description
Time in seconds between metadata timer syncs (default 10800 = 3 hours).
§Examples
use dnf_repofile::MetadataTimerSync;
let t = MetadataTimerSync::try_new(3600).unwrap();Implementations§
Source§impl MetadataTimerSync
impl MetadataTimerSync
pub fn try_new(raw_value: u32) -> Result<Self, MetadataTimerSyncError>
Source§impl MetadataTimerSync
impl MetadataTimerSync
pub fn into_inner(self) -> u32
Trait Implementations§
Source§impl Clone for MetadataTimerSync
impl Clone for MetadataTimerSync
Source§fn clone(&self) -> MetadataTimerSync
fn clone(&self) -> MetadataTimerSync
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 MetadataTimerSync
impl Debug for MetadataTimerSync
Source§impl Default for MetadataTimerSync
impl Default for MetadataTimerSync
Source§impl Deref for MetadataTimerSync
impl Deref for MetadataTimerSync
Source§impl Display for MetadataTimerSync
impl Display for MetadataTimerSync
Source§impl PartialEq for MetadataTimerSync
impl PartialEq for MetadataTimerSync
Source§fn eq(&self, other: &MetadataTimerSync) -> bool
fn eq(&self, other: &MetadataTimerSync) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MetadataTimerSync
impl Eq for MetadataTimerSync
impl StructuralPartialEq for MetadataTimerSync
Auto Trait Implementations§
impl Freeze for MetadataTimerSync
impl RefUnwindSafe for MetadataTimerSync
impl Send for MetadataTimerSync
impl Sync for MetadataTimerSync
impl Unpin for MetadataTimerSync
impl UnsafeUnpin for MetadataTimerSync
impl UnwindSafe for MetadataTimerSync
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.