pub enum TuningValueError {
ZeroCapacity,
ZeroMillis,
ZeroSocketCount,
}Expand description
Error returned when a tuning value violates a basic invariant.
Variants§
ZeroCapacity
Capacity values must be non-zero.
ZeroMillis
Millisecond values must be positive.
ZeroSocketCount
TVU socket count must be non-zero.
Trait Implementations§
Source§impl Clone for TuningValueError
impl Clone for TuningValueError
Source§fn clone(&self) -> TuningValueError
fn clone(&self) -> TuningValueError
Returns a duplicate of the value. Read more
1.0.0 · 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 TuningValueError
impl Debug for TuningValueError
Source§impl Display for TuningValueError
impl Display for TuningValueError
Source§impl Error for TuningValueError
impl Error for TuningValueError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for TuningValueError
impl PartialEq for TuningValueError
impl Copy for TuningValueError
impl Eq for TuningValueError
impl StructuralPartialEq for TuningValueError
Auto Trait Implementations§
impl Freeze for TuningValueError
impl RefUnwindSafe for TuningValueError
impl Send for TuningValueError
impl Sync for TuningValueError
impl Unpin for TuningValueError
impl UnsafeUnpin for TuningValueError
impl UnwindSafe for TuningValueError
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