Enum socketioxide::AckError
source · pub enum AckError<T> {
Serde(Error),
Timeout,
Adapter(AdapterError),
Socket(SocketError<T>),
}Expand description
Error type for ack operations.
Variants§
Serde(Error)
The ack response cannot be parsed
Timeout
The ack response timed out
Adapter(AdapterError)
An error happened while broadcasting to other socket.io nodes
Socket(SocketError<T>)
Error sending/receiving data through the engine.io socket
Trait Implementations§
source§impl<T> Error for AckError<T>
impl<T> Error for AckError<T>
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<T> From<AdapterError> for AckError<T>
impl<T> From<AdapterError> for AckError<T>
source§fn from(source: AdapterError) -> Self
fn from(source: AdapterError) -> Self
Converts to this type from the input type.
source§impl<T> From<SocketError<T>> for AckError<T>
impl<T> From<SocketError<T>> for AckError<T>
source§fn from(source: SocketError<T>) -> Self
fn from(source: SocketError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for AckError<T>where
T: Freeze,
impl<T> !RefUnwindSafe for AckError<T>
impl<T> Send for AckError<T>where
T: Send,
impl<T> Sync for AckError<T>where
T: Sync,
impl<T> Unpin for AckError<T>where
T: Unpin,
impl<T> !UnwindSafe for AckError<T>
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