pub enum WsSendError {
SendLimitReached,
MessageTooLarge,
SendError,
Unknown(i32),
}Expand description
Errors returned by send when the host refuses the frame.
Variants§
SendLimitReached
Per-invocation send-rate limit reached. Drop the frame and back off.
MessageTooLarge
Frame exceeds the host’s per-message size cap.
SendError
Generic send failure (connection closed, write error, etc.).
Unknown(i32)
Unknown error code returned by the host.
Trait Implementations§
Source§impl Debug for WsSendError
impl Debug for WsSendError
Source§impl Display for WsSendError
impl Display for WsSendError
Source§impl Error for WsSendError
impl Error for WsSendError
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()
Auto Trait Implementations§
impl Freeze for WsSendError
impl RefUnwindSafe for WsSendError
impl Send for WsSendError
impl Sync for WsSendError
impl Unpin for WsSendError
impl UnsafeUnpin for WsSendError
impl UnwindSafe for WsSendError
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