pub enum ExpectedConnectionLengthError {
TooLong(Duration),
Inverted(Duration, Duration),
}
Expand description
Types of errors that can occure when creating a ExpectedConnectionLength
.
Variants§
TooLong(Duration)
The maximum expected length is too long. The maximum is 40.959375, because nothing higher can be represented as a u16.
Inverted(Duration, Duration)
The min is greater than the max. Returns the min and max, respectively.
Trait Implementations§
Source§impl Clone for ExpectedConnectionLengthError
impl Clone for ExpectedConnectionLengthError
Source§fn clone(&self) -> ExpectedConnectionLengthError
fn clone(&self) -> ExpectedConnectionLengthError
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 PartialEq for ExpectedConnectionLengthError
impl PartialEq for ExpectedConnectionLengthError
Source§fn eq(&self, other: &ExpectedConnectionLengthError) -> bool
fn eq(&self, other: &ExpectedConnectionLengthError) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for ExpectedConnectionLengthError
impl StructuralPartialEq for ExpectedConnectionLengthError
Auto Trait Implementations§
impl Freeze for ExpectedConnectionLengthError
impl RefUnwindSafe for ExpectedConnectionLengthError
impl Send for ExpectedConnectionLengthError
impl Sync for ExpectedConnectionLengthError
impl Unpin for ExpectedConnectionLengthError
impl UnwindSafe for ExpectedConnectionLengthError
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