pub enum PresenceStreamError {
Decode(PresenceError),
Desynchronized {
dropped: u64,
},
ResyncRequired,
}Expand description
Failure while decoding or consuming a Presence event stream.
Variants§
Decode(PresenceError)
A Presence state or diff payload was invalid.
Desynchronized
The bounded channel event stream dropped events.
ResyncRequired
ChannelPresence::resync is required before consuming more events.
Trait Implementations§
Source§impl Clone for PresenceStreamError
impl Clone for PresenceStreamError
Source§fn clone(&self) -> PresenceStreamError
fn clone(&self) -> PresenceStreamError
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 moreSource§impl Debug for PresenceStreamError
impl Debug for PresenceStreamError
Source§impl Display for PresenceStreamError
impl Display for PresenceStreamError
Source§impl Error for PresenceStreamError
impl Error for PresenceStreamError
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 From<PresenceError> for PresenceStreamError
impl From<PresenceError> for PresenceStreamError
Source§impl PartialEq for PresenceStreamError
impl PartialEq for PresenceStreamError
Source§fn eq(&self, other: &PresenceStreamError) -> bool
fn eq(&self, other: &PresenceStreamError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PresenceStreamError
Auto Trait Implementations§
impl Freeze for PresenceStreamError
impl RefUnwindSafe for PresenceStreamError
impl Send for PresenceStreamError
impl Sync for PresenceStreamError
impl Unpin for PresenceStreamError
impl UnsafeUnpin for PresenceStreamError
impl UnwindSafe for PresenceStreamError
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