pub enum RealtimeError {
NotConfigured,
NotAMember,
NoSuchRoom(String),
Operation(String),
}Expand description
Realtime failures.
Variants§
NotConfigured
No realtime adapter configured (no Durable Object binding): the caller should degrade, not fail.
NotAMember
A message arrived from a socket whose member is not in the room (it left or never joined): drop it.
NoSuchRoom(String)
The room does not exist or has no connected members.
Operation(String)
A transport or storage failure.
Trait Implementations§
Source§impl Clone for RealtimeError
impl Clone for RealtimeError
Source§fn clone(&self) -> RealtimeError
fn clone(&self) -> RealtimeError
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 RealtimeError
impl Debug for RealtimeError
Source§impl Display for RealtimeError
impl Display for RealtimeError
Source§impl Error for RealtimeError
impl Error for RealtimeError
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()
Auto Trait Implementations§
impl Freeze for RealtimeError
impl RefUnwindSafe for RealtimeError
impl Send for RealtimeError
impl Sync for RealtimeError
impl Unpin for RealtimeError
impl UnsafeUnpin for RealtimeError
impl UnwindSafe for RealtimeError
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