pub enum TopiqError {
InvalidSubject {
reason: String,
},
Protocol(String),
UnsupportedVersion {
version: u8,
},
FrameTooLarge {
size: usize,
max: usize,
},
Transport(Error),
Codec(String),
ConnectionClosed,
Timeout,
Backpressure {
sid: u64,
},
}Expand description
Errors that can occur in the topiq system.
Variants§
InvalidSubject
Protocol(String)
UnsupportedVersion
FrameTooLarge
Transport(Error)
Codec(String)
ConnectionClosed
Timeout
Backpressure
Trait Implementations§
Source§impl Debug for TopiqError
impl Debug for TopiqError
Source§impl Display for TopiqError
impl Display for TopiqError
Source§impl Error for TopiqError
impl Error for TopiqError
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 TopiqError
impl !RefUnwindSafe for TopiqError
impl Send for TopiqError
impl Sync for TopiqError
impl Unpin for TopiqError
impl UnsafeUnpin for TopiqError
impl !UnwindSafe for TopiqError
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