pub struct MaxParallel(/* private fields */);Implementations§
Source§impl MaxParallel
impl MaxParallel
pub const DEFAULT: Self
pub const SERVER_MAX: Self
pub fn new(value: u8) -> Result<Self, DomainError>
pub const fn get(self) -> u8
pub const fn effective_with(self, ceiling: Self) -> Self
pub const fn is_default(&self) -> bool
Trait Implementations§
Source§impl Clone for MaxParallel
impl Clone for MaxParallel
Source§fn clone(&self) -> MaxParallel
fn clone(&self) -> MaxParallel
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 moreimpl Copy for MaxParallel
Source§impl Debug for MaxParallel
impl Debug for MaxParallel
Source§impl Default for MaxParallel
impl Default for MaxParallel
Source§impl<'de> Deserialize<'de> for MaxParallel
impl<'de> Deserialize<'de> for MaxParallel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MaxParallel
Source§impl From<MaxParallel> for u8
impl From<MaxParallel> for u8
Source§fn from(value: MaxParallel) -> Self
fn from(value: MaxParallel) -> Self
Converts to this type from the input type.
Source§impl Ord for MaxParallel
impl Ord for MaxParallel
Source§fn cmp(&self, other: &MaxParallel) -> Ordering
fn cmp(&self, other: &MaxParallel) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MaxParallel
impl PartialEq for MaxParallel
Source§impl PartialOrd for MaxParallel
impl PartialOrd for MaxParallel
Source§impl Serialize for MaxParallel
impl Serialize for MaxParallel
impl StructuralPartialEq for MaxParallel
Auto Trait Implementations§
impl Freeze for MaxParallel
impl RefUnwindSafe for MaxParallel
impl Send for MaxParallel
impl Sync for MaxParallel
impl Unpin for MaxParallel
impl UnsafeUnpin for MaxParallel
impl UnwindSafe for MaxParallel
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