pub struct Retries(/* private fields */);Expand description
Number of retries for network operations (default 10).
§Examples
use dnf_repofile::Retries;
let r = Retries::try_new(5).unwrap();
assert_eq!(*r, 5);Implementations§
Trait Implementations§
impl Copy for Retries
impl Eq for Retries
impl StructuralPartialEq for Retries
Auto Trait Implementations§
impl Freeze for Retries
impl RefUnwindSafe for Retries
impl Send for Retries
impl Sync for Retries
impl Unpin for Retries
impl UnsafeUnpin for Retries
impl UnwindSafe for Retries
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.