pub enum ChatError {
Adapter(String),
NotSupported(String),
MessageNotFound(String),
SendFailed(String),
Modal(String),
Closed,
Internal(Box<dyn Error + Send + Sync>),
}Expand description
Errors that can occur in the chat channel layer.
Variants§
Adapter(String)
An adapter-level failure (e.g. transport or protocol mismatch).
NotSupported(String)
The requested feature is not supported by the current adapter.
MessageNotFound(String)
A message with the given identifier was not found.
SendFailed(String)
Sending a message failed.
Modal(String)
A modal interaction error.
Closed
The underlying channel has been closed.
Internal(Box<dyn Error + Send + Sync>)
An opaque internal error from a lower layer.
Trait Implementations§
Source§impl Error for ChatError
impl Error for ChatError
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 ChatError
impl !RefUnwindSafe for ChatError
impl Send for ChatError
impl Sync for ChatError
impl Unpin for ChatError
impl UnsafeUnpin for ChatError
impl !UnwindSafe for ChatError
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