pub enum AnalogRequirement {
Analog,
DigitalOnly,
Absent,
}Expand description
What a port held after require_analog_on asked it for analog mode.
Variants§
Analog
A DualShock answered in analog mode, now locked there: the Analog button no longer switches it back to digital.
DigitalOnly
A controller answered but did not settle in analog mode: an original digital pad, or a DualShock that refused or ignored the request.
Absent
No controller gave a clean reply.
Implementations§
Trait Implementations§
Source§impl Clone for AnalogRequirement
impl Clone for AnalogRequirement
Source§fn clone(&self) -> AnalogRequirement
fn clone(&self) -> AnalogRequirement
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnalogRequirement
impl Debug for AnalogRequirement
Source§impl PartialEq for AnalogRequirement
impl PartialEq for AnalogRequirement
impl Copy for AnalogRequirement
impl Eq for AnalogRequirement
impl StructuralPartialEq for AnalogRequirement
Auto Trait Implementations§
impl Freeze for AnalogRequirement
impl RefUnwindSafe for AnalogRequirement
impl Send for AnalogRequirement
impl Sync for AnalogRequirement
impl Unpin for AnalogRequirement
impl UnsafeUnpin for AnalogRequirement
impl UnwindSafe for AnalogRequirement
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)