#[non_exhaustive]pub enum RecordEvent {
Chat(ChatEvent),
DecodeError(DecodeError),
}Expand description
Preserves the existing flat chat/decode_error JSON representation.
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.
Chat(ChatEvent)
Successfully decoded communication.
DecodeError(DecodeError)
Communication packet that failed validation or decoding.
Trait Implementations§
Source§impl Clone for RecordEvent
impl Clone for RecordEvent
Source§fn clone(&self) -> RecordEvent
fn clone(&self) -> RecordEvent
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 RecordEvent
impl Debug for RecordEvent
Auto Trait Implementations§
impl Freeze for RecordEvent
impl RefUnwindSafe for RecordEvent
impl Send for RecordEvent
impl Sync for RecordEvent
impl Unpin for RecordEvent
impl UnsafeUnpin for RecordEvent
impl UnwindSafe for RecordEvent
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