pub enum EventError {
SequenceMissing,
SequenceOnLive,
ChannelIdMissing,
IntegerTooLarge,
NotAnEvent,
}Expand description
An event envelope that breaks the rules of §7.4.
Variants§
SequenceMissing
A channel- or member-stream event without sequence.
SequenceOnLive
A live event with a sequence.
ChannelIdMissing
A channel-stream event without channel_id.
IntegerTooLarge
timestamp or sequence at or above 2^53.
NotAnEvent
type is response, or body is not an object.
Trait Implementations§
Source§impl Clone for EventError
impl Clone for EventError
Source§fn clone(&self) -> EventError
fn clone(&self) -> EventError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EventError
Source§impl Debug for EventError
impl Debug for EventError
Source§impl Display for EventError
impl Display for EventError
impl Eq for EventError
Source§impl Error for EventError
impl Error for EventError
1.30.0 · 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 PartialEq for EventError
impl PartialEq for EventError
impl StructuralPartialEq for EventError
Auto Trait Implementations§
impl Freeze for EventError
impl RefUnwindSafe for EventError
impl Send for EventError
impl Sync for EventError
impl Unpin for EventError
impl UnsafeUnpin for EventError
impl UnwindSafe for EventError
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