Enum socketioxide::SendError
source · pub enum SendError {
Serialize(Error),
AdapterError(AdapterError),
InternalChannelFull,
}Expand description
Error type for sending operations.
Variants§
Serialize(Error)
An error occurred while serializing the JSON packet.
AdapterError(AdapterError)
An error occured while broadcasting to other nodes.
InternalChannelFull
The socket channel is full.
You might need to increase the channel size with the SocketIoBuilder::max_buffer_size method.
Trait Implementations§
source§impl Error for SendError
impl Error for SendError
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<T> From<TrySendError<T>> for SendError
impl<T> From<TrySendError<T>> for SendError
source§fn from(value: TrySendError<T>) -> Self
fn from(value: TrySendError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SendError
impl Send for SendError
impl !Sync for SendError
impl Unpin for SendError
impl !UnwindSafe for SendError
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