#[non_exhaustive]pub struct PlayError<R: Sides> {
pub command: R::Command,
pub side: R::Side,
pub turn: u32,
pub error: R::Error,
}Expand description
A command the game refused during a play: a bug in a bot, never
skipped. Build it with PlayError::new (ADR-0039).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.command: R::CommandThe refused command.
side: R::SideThe side that issued it.
turn: u32The turn it was issued on.
error: R::ErrorWhy it was refused.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for PlayError<R>
impl<R> RefUnwindSafe for PlayError<R>where
<R as TurnRules>::Command: RefUnwindSafe,
<R as Sides>::Side: RefUnwindSafe,
<R as TurnRules>::Error: RefUnwindSafe,
impl<R> Send for PlayError<R>
impl<R> Sync for PlayError<R>
impl<R> Unpin for PlayError<R>
impl<R> UnsafeUnpin for PlayError<R>where
<R as TurnRules>::Command: UnsafeUnpin,
<R as Sides>::Side: UnsafeUnpin,
<R as TurnRules>::Error: UnsafeUnpin,
impl<R> UnwindSafe for PlayError<R>where
<R as TurnRules>::Command: UnwindSafe,
<R as Sides>::Side: UnwindSafe,
<R as TurnRules>::Error: UnwindSafe,
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