pub struct QueuedCommand { /* private fields */ }Expand description
One parsed command plus the queue group assigned to it.
Implementations§
Source§impl QueuedCommand
impl QueuedCommand
Sourcepub const fn command(&self) -> &ParsedCommand
pub const fn command(&self) -> &ParsedCommand
Returns the parsed command payload.
Sourcepub fn into_command(self) -> ParsedCommand
pub fn into_command(self) -> ParsedCommand
Consumes this item and returns the parsed command payload.
Sourcepub const fn group(&self) -> CommandGroup
pub const fn group(&self) -> CommandGroup
Returns this item’s queue group.
Trait Implementations§
Source§impl Clone for QueuedCommand
impl Clone for QueuedCommand
Source§fn clone(&self) -> QueuedCommand
fn clone(&self) -> QueuedCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueuedCommand
impl Debug for QueuedCommand
impl Eq for QueuedCommand
Source§impl PartialEq for QueuedCommand
impl PartialEq for QueuedCommand
impl StructuralPartialEq for QueuedCommand
Auto Trait Implementations§
impl Freeze for QueuedCommand
impl RefUnwindSafe for QueuedCommand
impl Send for QueuedCommand
impl Sync for QueuedCommand
impl Unpin for QueuedCommand
impl UnsafeUnpin for QueuedCommand
impl UnwindSafe for QueuedCommand
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