pub struct Command<'a> { /* private fields */ }Expand description
Borrowed view of a command while it is delivered on the UI thread.
Implementations§
Source§impl<'a> Command<'a>
impl<'a> Command<'a>
pub const fn sequence(&self) -> u64
pub const fn name(&self) -> &'static str
pub const fn payload_type_name(&self) -> &'static str
pub const fn target(&self) -> CommandTarget
pub const fn delivery(&self) -> CommandDelivery
pub fn is<T: 'static>(&self, key: CommandKey<T>) -> bool
pub fn get<T: Send + Sync + 'static>(&self, key: CommandKey<T>) -> Option<&T>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Command<'a>
impl<'a> !UnwindSafe for Command<'a>
impl<'a> Freeze for Command<'a>
impl<'a> Send for Command<'a>
impl<'a> Sync for Command<'a>
impl<'a> Unpin for Command<'a>
impl<'a> UnsafeUnpin for Command<'a>
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