pub struct EngineSignalSet { /* private fields */ }
Expand description
Struct to identify which EngineSignal
s were triggered during the submission of multiple
commands to the engine (usually in execute_rpn_data
)
Implementations§
Source§impl EngineSignalSet
impl EngineSignalSet
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new EngineSignalSet
with default values.
Sourcepub fn merge(&mut self, action: Result<EngineSignal, String>)
pub fn merge(&mut self, action: Result<EngineSignal, String>)
Given a result of an action, merge it into the set. This is a convinience method to easily set fields if the client should get a data structure from the engine.
§Arguments
action
- The action to merge into the set
Sourcepub fn set_error(&mut self, error: &(impl ToString + ?Sized)) -> Self
pub fn set_error(&mut self, error: &(impl ToString + ?Sized)) -> Self
Set an error in the signal set and return a new EngineSignalSet
Sourcepub fn stack_updated(&self) -> bool
pub fn stack_updated(&self) -> bool
Returns true
if the stack was updated.
Sourcepub fn should_quit(&self) -> bool
pub fn should_quit(&self) -> bool
Returns true
if a quit signal was triggered.
Trait Implementations§
Source§impl Clone for EngineSignalSet
impl Clone for EngineSignalSet
Source§fn clone(&self) -> EngineSignalSet
fn clone(&self) -> EngineSignalSet
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EngineSignalSet
impl Debug for EngineSignalSet
Source§impl Default for EngineSignalSet
impl Default for EngineSignalSet
Source§fn default() -> EngineSignalSet
fn default() -> EngineSignalSet
Returns the “default value” for a type. Read more
Source§impl Hash for EngineSignalSet
impl Hash for EngineSignalSet
Source§impl Ord for EngineSignalSet
impl Ord for EngineSignalSet
Source§fn cmp(&self, other: &EngineSignalSet) -> Ordering
fn cmp(&self, other: &EngineSignalSet) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EngineSignalSet
impl PartialEq for EngineSignalSet
Source§impl PartialOrd for EngineSignalSet
impl PartialOrd for EngineSignalSet
impl Eq for EngineSignalSet
impl StructuralPartialEq for EngineSignalSet
Auto Trait Implementations§
impl Freeze for EngineSignalSet
impl RefUnwindSafe for EngineSignalSet
impl Send for EngineSignalSet
impl Sync for EngineSignalSet
impl Unpin for EngineSignalSet
impl UnwindSafe for EngineSignalSet
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