Enum tungstenite::error::CapacityError
source · pub enum CapacityError {
TooManyHeaders,
MessageTooLong {
size: usize,
max_size: usize,
},
}
Expand description
Indicates the specific type/cause of a capacity error.
Variants§
TooManyHeaders
Too many headers provided (see httparse::Error::TooManyHeaders
).
MessageTooLong
Received header is too long. Message is bigger than the maximum allowed size.
Trait Implementations§
source§impl Clone for CapacityError
impl Clone for CapacityError
source§fn clone(&self) -> CapacityError
fn clone(&self) -> CapacityError
Returns a copy 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 CapacityError
impl Debug for CapacityError
source§impl Display for CapacityError
impl Display for CapacityError
source§impl Error for CapacityError
impl Error for CapacityError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<CapacityError> for Error
impl From<CapacityError> for Error
source§fn from(source: CapacityError) -> Self
fn from(source: CapacityError) -> Self
Converts to this type from the input type.
source§impl PartialEq for CapacityError
impl PartialEq for CapacityError
source§fn eq(&self, other: &CapacityError) -> bool
fn eq(&self, other: &CapacityError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CapacityError
impl Eq for CapacityError
impl StructuralPartialEq for CapacityError
Auto Trait Implementations§
impl Freeze for CapacityError
impl RefUnwindSafe for CapacityError
impl Send for CapacityError
impl Sync for CapacityError
impl Unpin for CapacityError
impl UnwindSafe for CapacityError
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