#[non_exhaustive]pub enum ResponseAdmission {
Accepted(Box<AcceptedInteraction>),
AlreadyAnswered(Box<InteractionRecord>),
}Expand description
What happened to a client answer.
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.
Accepted(Box<AcceptedInteraction>)
The answer was accepted and the card is now Resolving.
AlreadyAnswered(Box<InteractionRecord>)
The card had already been answered — a second click, or a race the
client lost. It covers both a resolution that is still running
(Resolving) and one that finished (Resolved): in either case the
record comes back so the turn can repeat the original result without
repeating the original effect (§15.5, I14).
Implementations§
Trait Implementations§
Source§impl Clone for ResponseAdmission
impl Clone for ResponseAdmission
Auto Trait Implementations§
impl Freeze for ResponseAdmission
impl RefUnwindSafe for ResponseAdmission
impl Send for ResponseAdmission
impl Sync for ResponseAdmission
impl Unpin for ResponseAdmission
impl UnsafeUnpin for ResponseAdmission
impl UnwindSafe for ResponseAdmission
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