pub struct TimeoutSeconds(/* private fields */);Expand description
Network timeout in seconds (default 30).
§Examples
use dnf_repofile::TimeoutSeconds;
let t = TimeoutSeconds::try_new(60).unwrap();
assert_eq!(*t, 60);Implementations§
Source§impl TimeoutSeconds
impl TimeoutSeconds
pub fn try_new(raw_value: u32) -> Result<Self, TimeoutSecondsError>
Source§impl TimeoutSeconds
impl TimeoutSeconds
pub fn into_inner(self) -> u32
Trait Implementations§
Source§impl Clone for TimeoutSeconds
impl Clone for TimeoutSeconds
Source§fn clone(&self) -> TimeoutSeconds
fn clone(&self) -> TimeoutSeconds
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 TimeoutSeconds
impl Debug for TimeoutSeconds
Source§impl Default for TimeoutSeconds
impl Default for TimeoutSeconds
Source§impl Deref for TimeoutSeconds
impl Deref for TimeoutSeconds
Source§impl Display for TimeoutSeconds
impl Display for TimeoutSeconds
Source§impl Ord for TimeoutSeconds
impl Ord for TimeoutSeconds
Source§fn cmp(&self, other: &TimeoutSeconds) -> Ordering
fn cmp(&self, other: &TimeoutSeconds) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimeoutSeconds
impl PartialEq for TimeoutSeconds
Source§fn eq(&self, other: &TimeoutSeconds) -> bool
fn eq(&self, other: &TimeoutSeconds) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TimeoutSeconds
impl PartialOrd for TimeoutSeconds
impl Copy for TimeoutSeconds
impl Eq for TimeoutSeconds
impl StructuralPartialEq for TimeoutSeconds
Auto Trait Implementations§
impl Freeze for TimeoutSeconds
impl RefUnwindSafe for TimeoutSeconds
impl Send for TimeoutSeconds
impl Sync for TimeoutSeconds
impl Unpin for TimeoutSeconds
impl UnsafeUnpin for TimeoutSeconds
impl UnwindSafe for TimeoutSeconds
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.