pub(super) struct UnregisteredCommandNode<S, R = BrigadierRuntime>where
R: CommandRuntime<S>,{
pub(super) data: CommandNodeData<R::Argument>,
pub(super) children: Vec<Self>,
pub(super) executor: Option<Arc<R::Executor>>,
pub(super) requirement: CommandRequirement<S>,
pub(super) execution_requirement: CommandRequirement<S>,
pub(super) redirect: Option<CommandRedirect<S, R>>,
}Fields§
§data: CommandNodeData<R::Argument>§children: Vec<Self>§executor: Option<Arc<R::Executor>>§requirement: CommandRequirement<S>§execution_requirement: CommandRequirement<S>§redirect: Option<CommandRedirect<S, R>>Implementations§
Source§impl<S, R> UnregisteredCommandNode<S, R>where
R: CommandRuntime<S>,
impl<S, R> UnregisteredCommandNode<S, R>where
R: CommandRuntime<S>,
pub(super) fn name(&self) -> &str
pub(super) const fn kind(&self) -> NodeKind
pub(super) fn resolve_command_root(&mut self, command_root: NodeId)
pub(super) fn merge(&mut self, incoming: Self) -> Result<(), RegistrationError>
fn validate_compatible(&self, incoming: &Self) -> Result<(), RegistrationError>
Auto Trait Implementations§
impl<S, R = BrigadierRuntime> !RefUnwindSafe for UnregisteredCommandNode<S, R>
impl<S, R = BrigadierRuntime> !UnwindSafe for UnregisteredCommandNode<S, R>
impl<S, R> Freeze for UnregisteredCommandNode<S, R>
impl<S, R> Send for UnregisteredCommandNode<S, R>
impl<S, R> Sync for UnregisteredCommandNode<S, R>
impl<S, R> Unpin for UnregisteredCommandNode<S, R>
impl<S, R> UnsafeUnpin for UnregisteredCommandNode<S, R>
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<>>