#[non_exhaustive]pub enum RealtimeEvent {
Connected,
Disconnected,
Reconnected,
TransportGap,
Invocation(SignalRInvocation),
Message(Value),
}Expand description
Events emitted by a RealtimeClient.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connected
The initial connection completed its SignalR handshake.
Disconnected
The transport disconnected.
Reconnected
A replacement connection completed its SignalR handshake.
Callers must replay their canonical subscription set after receiving this event.
TransportGap
At least one provider frame could not enter the bounded event queue.
Callers must fence recovery and then call
RealtimeEventReceiver::acknowledge_transport_gap.
Invocation(SignalRInvocation)
A provider type-1 invocation with an exact raw entity retained for typed decoding.
Message(Value)
A decoded SignalR JSON message.
Type-1 invocations are emitted through Self::Invocation; this
variant carries other application-visible message families.
Trait Implementations§
Source§impl Clone for RealtimeEvent
impl Clone for RealtimeEvent
Source§fn clone(&self) -> RealtimeEvent
fn clone(&self) -> RealtimeEvent
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 RealtimeEvent
impl Debug for RealtimeEvent
Source§impl PartialEq for RealtimeEvent
impl PartialEq for RealtimeEvent
impl StructuralPartialEq for RealtimeEvent
Auto Trait Implementations§
impl Freeze for RealtimeEvent
impl RefUnwindSafe for RealtimeEvent
impl Send for RealtimeEvent
impl Sync for RealtimeEvent
impl Unpin for RealtimeEvent
impl UnsafeUnpin for RealtimeEvent
impl UnwindSafe for RealtimeEvent
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