pub(crate) struct BrigadierRuntime;Expand description
The standard synchronous behavior used by the standalone Brigadier layer.
Trait Implementations§
Source§impl<S> CommandRuntime<S> for BrigadierRuntime
impl<S> CommandRuntime<S> for BrigadierRuntime
type Argument = ArgumentType
type ArgumentValue = PrimitiveArgumentValue
type Executor = dyn Fn(&CommandContext<S>) -> Result<i32, CommandSyntaxError> + Sync + Send
type Modifier = dyn Fn(&CommandContext<S>) -> Result<Vec<S>, CommandSyntaxError> + Sync + Send
Auto Trait Implementations§
impl Freeze for BrigadierRuntime
impl RefUnwindSafe for BrigadierRuntime
impl Send for BrigadierRuntime
impl Sync for BrigadierRuntime
impl Unpin for BrigadierRuntime
impl UnsafeUnpin for BrigadierRuntime
impl UnwindSafe for BrigadierRuntime
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
§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> ⓘ
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 moreWraps this value in an
Arc<SyncMutex<>>