pub enum OverrideRefusal {
UnknownAction(String),
BadBinding {
action: String,
error: BindingParseError,
},
Refused(ActionMapError),
}Expand description
Why one entry of a saved list of rebinds was not applied — see
ActionMap::apply_override_text.
Variants§
UnknownAction(String)
The list names an action this map does not declare. The entry is skipped and the rest apply.
BadBinding
One of an action’s binding texts does not parse. The whole entry is refused, so the action keeps its declared bindings rather than the part of the player’s list that did read.
Fields
§
error: BindingParseErrorThe text that did not parse, and why.
Refused(ActionMapError)
The map refused the bindings — a dead zone or threshold outside
0.0..1.0 — and the action keeps its declared ones.
Trait Implementations§
Source§impl Clone for OverrideRefusal
impl Clone for OverrideRefusal
Source§impl Debug for OverrideRefusal
impl Debug for OverrideRefusal
Source§impl Display for OverrideRefusal
impl Display for OverrideRefusal
Source§impl Error for OverrideRefusal
impl Error for OverrideRefusal
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for OverrideRefusal
impl PartialEq for OverrideRefusal
impl StructuralPartialEq for OverrideRefusal
Auto Trait Implementations§
impl Freeze for OverrideRefusal
impl RefUnwindSafe for OverrideRefusal
impl Send for OverrideRefusal
impl Sync for OverrideRefusal
impl Unpin for OverrideRefusal
impl UnsafeUnpin for OverrideRefusal
impl UnwindSafe for OverrideRefusal
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