pub struct CommandSelector {
pub command_name: CommandName,
}Fields§
§command_name: CommandNameImplementations§
Source§impl CommandSelector
impl CommandSelector
pub const fn new(command_name: CommandName) -> Self
pub fn matches(&self, command: &CommandEnvelope) -> bool
Trait Implementations§
Source§impl Clone for CommandSelector
impl Clone for CommandSelector
Source§fn clone(&self) -> CommandSelector
fn clone(&self) -> CommandSelector
Returns a duplicate of the value. Read more
1.0.0 · 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 CommandSelector
impl Debug for CommandSelector
Source§impl Hash for CommandSelector
impl Hash for CommandSelector
Source§impl PartialEq for CommandSelector
impl PartialEq for CommandSelector
Source§impl Selector<CommandEnvelope> for CommandSelector
impl Selector<CommandEnvelope> for CommandSelector
fn matches(&self, message: &CommandEnvelope) -> bool
impl Copy for CommandSelector
impl Eq for CommandSelector
impl StructuralPartialEq for CommandSelector
Auto Trait Implementations§
impl Freeze for CommandSelector
impl RefUnwindSafe for CommandSelector
impl Send for CommandSelector
impl Sync for CommandSelector
impl Unpin for CommandSelector
impl UnwindSafe for CommandSelector
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