pub enum NativePresenceError {
Events(NativeEventError),
Decode(PresenceError),
Desynchronized {
dropped: u64,
},
ResyncRequired,
}Expand description
Failure while consuming native Presence state and events.
Variants§
Events(NativeEventError)
The underlying channel event receiver lagged or closed.
Decode(PresenceError)
A Presence state or diff payload was invalid.
Desynchronized
The bounded event stream dropped events and invalidated local state.
ResyncRequired
NativeChannelPresence::resync is required before consuming events.
Trait Implementations§
Source§impl Debug for NativePresenceError
impl Debug for NativePresenceError
Source§impl Display for NativePresenceError
impl Display for NativePresenceError
Source§impl Error for NativePresenceError
impl Error for NativePresenceError
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<NativeEventError> for NativePresenceError
impl From<NativeEventError> for NativePresenceError
Source§fn from(source: NativeEventError) -> Self
fn from(source: NativeEventError) -> Self
Converts to this type from the input type.
Source§impl From<PresenceError> for NativePresenceError
impl From<PresenceError> for NativePresenceError
Source§fn from(source: PresenceError) -> Self
fn from(source: PresenceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NativePresenceError
impl RefUnwindSafe for NativePresenceError
impl Send for NativePresenceError
impl Sync for NativePresenceError
impl Unpin for NativePresenceError
impl UnsafeUnpin for NativePresenceError
impl UnwindSafe for NativePresenceError
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