#[non_exhaustive]pub enum PlaytestError<R: Sides> {
UnknownEntrant(UnknownEntrant),
#[non_exhaustive] Play {
entrant: String,
error: PlayError<R>,
},
}Expand description
Why a playtest stopped. More reasons may come (ADR-0039).
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.
UnknownEntrant(UnknownEntrant)
A check names an entrant that isn’t in the run.
#[non_exhaustive]Play
A bot’s command was refused: a bug in a bot, never skipped. Build
it with PlaytestError::play.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Implementations§
Trait Implementations§
Source§impl<R: Sides> Debug for PlaytestError<R>
impl<R: Sides> Debug for PlaytestError<R>
Source§impl<R: Sides> Display for PlaytestError<R>
impl<R: Sides> Display for PlaytestError<R>
Source§impl<R: Sides> From<UnknownEntrant> for PlaytestError<R>
impl<R: Sides> From<UnknownEntrant> for PlaytestError<R>
Source§fn from(e: UnknownEntrant) -> Self
fn from(e: UnknownEntrant) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<R> Freeze for PlaytestError<R>
impl<R> RefUnwindSafe for PlaytestError<R>where
<R as TurnRules>::Command: RefUnwindSafe,
<R as Sides>::Side: RefUnwindSafe,
<R as TurnRules>::Error: RefUnwindSafe,
impl<R> Send for PlaytestError<R>
impl<R> Sync for PlaytestError<R>
impl<R> Unpin for PlaytestError<R>
impl<R> UnsafeUnpin for PlaytestError<R>where
<R as TurnRules>::Command: UnsafeUnpin,
<R as Sides>::Side: UnsafeUnpin,
<R as TurnRules>::Error: UnsafeUnpin,
impl<R> UnwindSafe for PlaytestError<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