#[non_exhaustive]pub enum RealtimeEvent {
Updates(Vec<Update>),
Ack {
msg_id: u64,
},
Pong {
nonce: u64,
},
}Expand description
Server-pushed realtime event received outside a direct RPC result.
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.
Updates(Vec<Update>)
Inline protocol updates pushed by the server.
Ack
Server acknowledgement for a previously sent client message.
Pong
Server pong response.
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