pub struct ChainHandler {
pub fighter_id: FighterId,
pub capabilities: Vec<String>,
}Expand description
A handler in the chain of responsibility.
Fields§
§fighter_id: FighterIdThe fighter that handles this step.
capabilities: Vec<String>Capabilities this handler can address (keyword matching).
Trait Implementations§
Source§impl Clone for ChainHandler
impl Clone for ChainHandler
Source§fn clone(&self) -> ChainHandler
fn clone(&self) -> ChainHandler
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 moreAuto Trait Implementations§
impl Freeze for ChainHandler
impl RefUnwindSafe for ChainHandler
impl Send for ChainHandler
impl Sync for ChainHandler
impl Unpin for ChainHandler
impl UnsafeUnpin for ChainHandler
impl UnwindSafe for ChainHandler
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