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)>
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 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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)