pub enum NegotiationError {
ZeroLimit,
AboveHardMaximum,
NativeSizeNarrowing,
AtomicUnsupported,
InvalidDeadline,
}Expand description
Invalid local or peer negotiation offer.
Variants§
ZeroLimit
A numeric limit is zero.
AboveHardMaximum
A numeric limit exceeds its field-specific hard maximum.
NativeSizeNarrowing
A byte limit cannot narrow to this target’s usize.
AtomicUnsupported
Required lock-free atomic width is not available.
InvalidDeadline
A monotonic deadline cannot be represented.
Trait Implementations§
Source§impl Clone for NegotiationError
impl Clone for NegotiationError
Source§fn clone(&self) -> NegotiationError
fn clone(&self) -> NegotiationError
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 NegotiationError
Source§impl Debug for NegotiationError
impl Debug for NegotiationError
Source§impl Display for NegotiationError
impl Display for NegotiationError
impl Eq for NegotiationError
Source§impl Error for NegotiationError
impl Error for NegotiationError
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 NegotiationError
impl PartialEq for NegotiationError
impl StructuralPartialEq for NegotiationError
Auto Trait Implementations§
impl Freeze for NegotiationError
impl RefUnwindSafe for NegotiationError
impl Send for NegotiationError
impl Sync for NegotiationError
impl Unpin for NegotiationError
impl UnsafeUnpin for NegotiationError
impl UnwindSafe for NegotiationError
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