pub(crate) enum CommandSyntaxErrorKind {
Show 27 variants
UnknownCommand,
UnknownArgument,
Dynamic(Box<TextComponent>),
ExpectedStartOfQuote,
ExpectedEndOfQuote,
InvalidEscape(char),
InvalidBool(Box<str>),
InvalidInt(Box<str>),
ExpectedInt,
InvalidLong(Box<str>),
ExpectedLong,
InvalidDouble(Box<str>),
ExpectedDouble,
InvalidFloat(Box<str>),
ExpectedFloat,
ExpectedBool,
ExpectedSymbol(char),
LiteralIncorrect(Box<str>),
IntegerTooLow {
found: i32,
minimum: i32,
},
IntegerTooHigh {
found: i32,
maximum: i32,
},
LongTooLow {
found: i64,
minimum: i64,
},
LongTooHigh {
found: i64,
maximum: i64,
},
FloatTooLow {
found: f32,
minimum: f32,
},
FloatTooHigh {
found: f32,
maximum: f32,
},
DoubleTooLow {
found: f64,
minimum: f64,
},
DoubleTooHigh {
found: f64,
maximum: f64,
},
ExpectedArgumentSeparator,
}Expand description
Identifies a Brigadier parsing or command execution error.
Variants§
UnknownCommand
No executable command matched the input.
UnknownArgument
A command matched, but trailing input did not.
Dynamic(Box<TextComponent>)
A command supplied a rich runtime failure message.
ExpectedStartOfQuote
A quoted string did not start with a quote.
ExpectedEndOfQuote
A quoted string reached the end of its input.
InvalidEscape(char)
A quoted string contained an unsupported escape.
InvalidBool(Box<str>)
A boolean did not contain true or false.
InvalidInt(Box<str>)
An integer could not be parsed.
ExpectedInt
No integer was present.
InvalidLong(Box<str>)
A long could not be parsed.
ExpectedLong
No long was present.
InvalidDouble(Box<str>)
A double could not be parsed.
ExpectedDouble
No double was present.
InvalidFloat(Box<str>)
A float could not be parsed.
ExpectedFloat
No float was present.
ExpectedBool
No boolean was present.
ExpectedSymbol(char)
An expected symbol was not present.
LiteralIncorrect(Box<str>)
A literal node did not match its configured text.
IntegerTooLow
An integer was below its configured minimum.
IntegerTooHigh
An integer was above its configured maximum.
LongTooLow
A long was below its configured minimum.
LongTooHigh
A long was above its configured maximum.
FloatTooLow
A float was below its configured minimum.
FloatTooHigh
A float was above its configured maximum.
DoubleTooLow
A double was below its configured minimum.
DoubleTooHigh
A double was above its configured maximum.
ExpectedArgumentSeparator
A parsed argument had trailing non-whitespace data.
Implementations§
Trait Implementations§
Source§impl Clone for CommandSyntaxErrorKind
impl Clone for CommandSyntaxErrorKind
Source§fn clone(&self) -> CommandSyntaxErrorKind
fn clone(&self) -> CommandSyntaxErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommandSyntaxErrorKind
impl Debug for CommandSyntaxErrorKind
Source§impl Display for CommandSyntaxErrorKind
impl Display for CommandSyntaxErrorKind
Source§impl PartialEq for CommandSyntaxErrorKind
impl PartialEq for CommandSyntaxErrorKind
impl StructuralPartialEq for CommandSyntaxErrorKind
Auto Trait Implementations§
impl Freeze for CommandSyntaxErrorKind
impl RefUnwindSafe for CommandSyntaxErrorKind
impl Send for CommandSyntaxErrorKind
impl Sync for CommandSyntaxErrorKind
impl Unpin for CommandSyntaxErrorKind
impl UnsafeUnpin for CommandSyntaxErrorKind
impl UnwindSafe for CommandSyntaxErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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 moreArc<SyncMutex<>>