pub struct DispatchedCommand { /* private fields */ }Implementations§
Source§impl DispatchedCommand
impl DispatchedCommand
Sourcepub fn the_command<T: 'static>(&self) -> Option<&T>
pub fn the_command<T: 'static>(&self) -> Option<&T>
Returns a reference to (the real command) the dispatched command
Sourcepub fn the_command_mut<T: 'static>(&mut self) -> Option<&mut T>
pub fn the_command_mut<T: 'static>(&mut self) -> Option<&mut T>
Returns a mutable reference to (the real command) the dispatched command
Sourcepub fn take_command<T: 'static>(&mut self) -> Option<Box<T>>
pub fn take_command<T: 'static>(&mut self) -> Option<Box<T>>
Returns (the real command) the dispatched command
Subsequent to this method or the_command_mut and the_command will returned none
Trait Implementations§
Source§impl Debug for DispatchedCommand
impl Debug for DispatchedCommand
Source§impl<H: DispatchableCommand + 'static> From<H> for DispatchedCommand
impl<H: DispatchableCommand + 'static> From<H> for DispatchedCommand
Auto Trait Implementations§
impl Freeze for DispatchedCommand
impl !RefUnwindSafe for DispatchedCommand
impl Send for DispatchedCommand
impl Sync for DispatchedCommand
impl Unpin for DispatchedCommand
impl !UnwindSafe for DispatchedCommand
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