pub enum ChallengeError {
Show 13 variants
ChallengeTypeNotFound,
ChallengeConfigNotFound(String),
InvalidInput(String),
NoMoreTasks,
NoPreviousTasks,
InvalidOptionId(usize),
InvalidChallengeType,
ValidationFailed(String),
Base64Decode(String),
Serialization(String),
Deserialization(String),
Parse(String),
ChallengeNotFound(String),
}Variants§
ChallengeTypeNotFound
ChallengeConfigNotFound(String)
InvalidInput(String)
NoMoreTasks
NoPreviousTasks
InvalidOptionId(usize)
InvalidChallengeType
ValidationFailed(String)
Base64Decode(String)
Serialization(String)
Deserialization(String)
Parse(String)
ChallengeNotFound(String)
Trait Implementations§
Source§impl Debug for ChallengeError
impl Debug for ChallengeError
Source§impl Display for ChallengeError
impl Display for ChallengeError
Source§impl Error for ChallengeError
impl Error for ChallengeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ChallengeError> for CommandError
impl From<ChallengeError> for CommandError
Source§fn from(source: ChallengeError) -> Self
fn from(source: ChallengeError) -> Self
Converts to this type from the input type.
Source§impl From<ChallengeError> for GameError
impl From<ChallengeError> for GameError
Source§fn from(source: ChallengeError) -> Self
fn from(source: ChallengeError) -> Self
Converts to this type from the input type.
Source§impl From<ChallengeError> for KonnektorenError
impl From<ChallengeError> for KonnektorenError
Source§fn from(source: ChallengeError) -> Self
fn from(source: ChallengeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ChallengeError
impl PartialEq for ChallengeError
impl StructuralPartialEq for ChallengeError
Auto Trait Implementations§
impl Freeze for ChallengeError
impl RefUnwindSafe for ChallengeError
impl Send for ChallengeError
impl Sync for ChallengeError
impl Unpin for ChallengeError
impl UnwindSafe for ChallengeError
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
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
Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds error is returned which contains
the unclamped color. Read more