pub enum PresenceError {
InvalidState,
InvalidDiff,
InvalidPresence(String),
InvalidMetas(String),
InvalidMeta(String),
MissingReference(String),
BinaryPayload,
}Expand description
Invalid Phoenix Presence state, diff, or metadata.
Variants§
InvalidState
A full state was not a JSON object.
InvalidDiff
A diff did not contain valid joins and leaves objects.
InvalidPresence(String)
The named presence entry was not an object.
InvalidMetas(String)
The named presence entry had no metas array.
InvalidMeta(String)
A meta belonging to the named entry was not an object.
MissingReference(String)
A meta belonging to the named entry had no string phx_ref.
BinaryPayload
Presence events cannot be decoded from binary payloads.
Trait Implementations§
Source§impl Clone for PresenceError
impl Clone for PresenceError
Source§fn clone(&self) -> PresenceError
fn clone(&self) -> PresenceError
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 PresenceError
impl Debug for PresenceError
Source§impl Display for PresenceError
impl Display for PresenceError
Source§impl Error for PresenceError
impl Error for PresenceError
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 PresenceError
impl PartialEq for PresenceError
Source§fn eq(&self, other: &PresenceError) -> bool
fn eq(&self, other: &PresenceError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PresenceError
impl StructuralPartialEq for PresenceError
Auto Trait Implementations§
impl Freeze for PresenceError
impl RefUnwindSafe for PresenceError
impl Send for PresenceError
impl Sync for PresenceError
impl Unpin for PresenceError
impl UnsafeUnpin for PresenceError
impl UnwindSafe for PresenceError
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