Enum tungstenite::error::CapacityError
source · 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.