pub enum JetstreamEventError {
ReceivedMalformedJSON(Error),
CompressionDictionaryError(Error),
CompressionDecoderError(Error),
WebSocketCloseFailure,
}Expand description
Possible errors that can occur when receiving events from a Jetstream instance over WebSockets.
See websocket_task.
Variants§
ReceivedMalformedJSON(Error)
CompressionDictionaryError(Error)
CompressionDecoderError(Error)
WebSocketCloseFailure
Trait Implementations§
Source§impl Debug for JetstreamEventError
impl Debug for JetstreamEventError
Source§impl Display for JetstreamEventError
impl Display for JetstreamEventError
Source§impl Error for JetstreamEventError
impl Error for JetstreamEventError
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 !RefUnwindSafe for JetstreamEventError
impl !UnwindSafe for JetstreamEventError
impl Freeze for JetstreamEventError
impl Send for JetstreamEventError
impl Sync for JetstreamEventError
impl Unpin for JetstreamEventError
impl UnsafeUnpin for JetstreamEventError
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