pub enum InteractionRejection {
NoTarget,
FocusLost,
NotHeld,
OutOfRange,
PermissionDenied,
Obstructed,
AlreadyCompleted,
}Expand description
The first failing gate reported by Interaction::eligibility.
Gate precedence is no target, focus, hold, range, permission, visibility,
then the completion latch. A failed gate can therefore rearm a completed
hold when applied by Interaction::step_checked, just like legacy None.
Variants§
NoTarget
No actor/target pair was supplied.
FocusLost
Gameplay input for this actor no longer has focus.
NotHeld
The interaction button is not held.
OutOfRange
The target is outside interaction range.
PermissionDenied
The host denied permission to interact.
Obstructed
Required line of sight is blocked.
AlreadyCompleted
This pair already completed; continued holding cannot grant again.
Trait Implementations§
Source§impl Clone for InteractionRejection
impl Clone for InteractionRejection
Source§fn clone(&self) -> InteractionRejection
fn clone(&self) -> InteractionRejection
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 moreSource§impl Debug for InteractionRejection
impl Debug for InteractionRejection
Source§impl PartialEq for InteractionRejection
impl PartialEq for InteractionRejection
impl Copy for InteractionRejection
impl Eq for InteractionRejection
impl StructuralPartialEq for InteractionRejection
Auto Trait Implementations§
impl Freeze for InteractionRejection
impl RefUnwindSafe for InteractionRejection
impl Send for InteractionRejection
impl Sync for InteractionRejection
impl Unpin for InteractionRejection
impl UnwindSafe for InteractionRejection
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