#[non_exhaustive]pub enum Kind<'a> {
Chat(Chat<'a>),
Private(Private<'a>),
Join(&'a str),
NicknameChange(&'a str, &'a str),
Leave(&'a str),
Challenge(Challenge<'a>),
Html(&'a str),
NoInit(NoInit<'a>),
RoomInit(RoomInit<'a>),
QueryResponse(QueryResponse<'a>),
UpdateUser(UpdateUser<'a>),
Unrecognized(UnrecognizedMessage<'a>),
}
Expand description
Showdown message kind.
This structure was designed to be matched on. For performance
reasons, it’s borrowing string slices from Message
, trying
to use this structure when Message
is not in scope will
cause borrow checker failures.
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(Chat<'a>)
Private(Private<'a>)
Join(&'a str)
NicknameChange(&'a str, &'a str)
Leave(&'a str)
Challenge(Challenge<'a>)
Login challenge.
This can be used to authenticate.
Html(&'a str)
NoInit(NoInit<'a>)
RoomInit(RoomInit<'a>)
QueryResponse(QueryResponse<'a>)
UpdateUser(UpdateUser<'a>)
Unrecognized(UnrecognizedMessage<'a>)
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Kind<'a>
impl<'a> Send for Kind<'a>
impl<'a> Sync for Kind<'a>
impl<'a> Unpin for Kind<'a>
impl<'a> UnwindSafe for Kind<'a>
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