pub struct FiringComponent { /* private fields */ }Implementations§
Source§impl FiringComponent
impl FiringComponent
pub fn is_enabled(&self, state: &State) -> bool
Sourcepub fn fire(&self, state: &mut State) -> Result<(), AcesError>
pub fn fire(&self, state: &mut State) -> Result<(), AcesError>
Note: this routine doesn’t check for enablement. Instead, it
assumes that the firing component is enabled in the given
state. Therefore, prior to a call to fire(),
is_enabled() should return true (it may be called
directly, or e.g. via FiringSet::get_enabled()).
Trait Implementations§
Source§impl Contextual for FiringComponent
impl Contextual for FiringComponent
fn format(&self, ctx: &ContextHandle) -> Result<String, AcesError>
fn with(&self, ctx: &ContextHandle) -> InContext<'_, Self>
fn with_mut(&mut self, ctx: &ContextHandle) -> InContextMut<'_, Self>
Source§impl Debug for FiringComponent
impl Debug for FiringComponent
Source§impl Default for FiringComponent
impl Default for FiringComponent
Source§fn default() -> FiringComponent
fn default() -> FiringComponent
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FiringComponent
impl RefUnwindSafe for FiringComponent
impl Send for FiringComponent
impl Sync for FiringComponent
impl Unpin for FiringComponent
impl UnwindSafe for FiringComponent
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