pub enum ActionMapError {
DuplicateName(String),
UnknownAction(String),
UnknownContext(String),
ContextAlreadyActive(String),
ContextNotOnTop(String),
InvalidDeadzone(String),
NotAButton(String),
EmitsItself(String),
}Expand description
What can go wrong when mutating an ActionMap.
Variants§
DuplicateName(String)
An action with this name is already declared.
UnknownAction(String)
No action with this name has been declared.
UnknownContext(String)
No context with this name has been declared.
ContextAlreadyActive(String)
ActionMap::push_context was asked for a context already active —
GAMEPLAY_CONTEXT and GLOBAL_CONTEXT always are.
ContextNotOnTop(String)
ActionMap::pop_context was asked for a context that is not the
topmost pushed one — GAMEPLAY_CONTEXT and GLOBAL_CONTEXT are
never pushed.
InvalidDeadzone(String)
A Binding::PadStick’s dead zone or a Binding::PadTrigger’s
threshold on the named action is not finite and in 0.0..1.0.
NotAButton(String)
ActionMap::set_emits was asked to make a pattern emit an action
that is not an ActionKind::Button.
EmitsItself(String)
ActionMap::set_emits was asked to make a pattern emit the action it
is attached to.
Trait Implementations§
Source§impl Clone for ActionMapError
impl Clone for ActionMapError
Source§impl Debug for ActionMapError
impl Debug for ActionMapError
Source§impl Display for ActionMapError
impl Display for ActionMapError
impl Eq for ActionMapError
Source§impl Error for ActionMapError
impl Error for ActionMapError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()