pub enum FragmentationError {
InvalidFragmentSize,
CanNotBeFragmented,
}Expand description
Fragmentation error.
Variants§
InvalidFragmentSize
Fragment size is zero.
CanNotBeFragmented
Error indicating that a message type that cannot be fragmented was attempted to be fragmented.
Only text and binary messages can be fragmented.
Trait Implementations§
Source§impl Debug for FragmentationError
impl Debug for FragmentationError
Source§impl Display for FragmentationError
impl Display for FragmentationError
Source§impl Error for FragmentationError
impl Error for FragmentationError
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<I, E> From<FragmentationError> for Error<I, E>
impl<I, E> From<FragmentationError> for Error<I, E>
Source§fn from(source: FragmentationError) -> Self
fn from(source: FragmentationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FragmentationError
impl RefUnwindSafe for FragmentationError
impl Send for FragmentationError
impl Sync for FragmentationError
impl Unpin for FragmentationError
impl UnwindSafe for FragmentationError
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