pub(super) struct CommandRedirect<S, R = BrigadierRuntime>where
R: CommandRuntime<S>,{
pub(super) target: CommandRedirectTarget,
pub(super) modifier: Option<Arc<R::Modifier>>,
pub(super) forks: bool,
}Fields§
§target: CommandRedirectTarget§modifier: Option<Arc<R::Modifier>>§forks: boolImplementations§
Source§impl<S, R> CommandRedirect<S, R>where
R: CommandRuntime<S>,
impl<S, R> CommandRedirect<S, R>where
R: CommandRuntime<S>,
pub(super) const fn identity(target: CommandRedirectTarget) -> Self
pub(super) const fn with_modifier( target: CommandRedirectTarget, modifier: Arc<R::Modifier>, forks: bool, ) -> Self
fn resolve_command_root(&mut self, command_root: NodeId)
fn is_compatible_with(&self, other: &Self) -> bool
Trait Implementations§
Source§impl<S, R> Clone for CommandRedirect<S, R>where
R: CommandRuntime<S>,
impl<S, R> Clone for CommandRedirect<S, R>where
R: CommandRuntime<S>,
Auto Trait Implementations§
impl<S, R> Freeze for CommandRedirect<S, R>
impl<S, R> RefUnwindSafe for CommandRedirect<S, R>
impl<S, R> Send for CommandRedirect<S, R>
impl<S, R> Sync for CommandRedirect<S, R>
impl<S, R> Unpin for CommandRedirect<S, R>
impl<S, R> UnsafeUnpin for CommandRedirect<S, R>
impl<S, R> UnwindSafe for CommandRedirect<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
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> ⓘ
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<>>