pub struct MaxParallelDownloads(/* private fields */);Expand description
Maximum parallel downloads (0–20, default 3).
§Examples
use dnf_repofile::MaxParallelDownloads;
let m = MaxParallelDownloads::try_new(5).unwrap();Implementations§
Source§impl MaxParallelDownloads
impl MaxParallelDownloads
pub fn try_new(raw_value: u32) -> Result<Self, MaxParallelDownloadsError>
Source§impl MaxParallelDownloads
impl MaxParallelDownloads
pub fn into_inner(self) -> u32
Trait Implementations§
Source§impl Clone for MaxParallelDownloads
impl Clone for MaxParallelDownloads
Source§fn clone(&self) -> MaxParallelDownloads
fn clone(&self) -> MaxParallelDownloads
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 MaxParallelDownloads
impl Debug for MaxParallelDownloads
Source§impl Default for MaxParallelDownloads
impl Default for MaxParallelDownloads
Source§impl Deref for MaxParallelDownloads
impl Deref for MaxParallelDownloads
Source§impl Display for MaxParallelDownloads
impl Display for MaxParallelDownloads
Source§impl PartialEq for MaxParallelDownloads
impl PartialEq for MaxParallelDownloads
Source§fn eq(&self, other: &MaxParallelDownloads) -> bool
fn eq(&self, other: &MaxParallelDownloads) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MaxParallelDownloads
impl Eq for MaxParallelDownloads
impl StructuralPartialEq for MaxParallelDownloads
Auto Trait Implementations§
impl Freeze for MaxParallelDownloads
impl RefUnwindSafe for MaxParallelDownloads
impl Send for MaxParallelDownloads
impl Sync for MaxParallelDownloads
impl Unpin for MaxParallelDownloads
impl UnsafeUnpin for MaxParallelDownloads
impl UnwindSafe for MaxParallelDownloads
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.