Struct playdate_controls::peripherals::Peripherals
source · pub struct Peripherals;Expand description
Wrapped Peripherals API.
Currently there’s only one peripheral - accelerometer.
Implementations§
source§impl Peripherals
impl Peripherals
pub fn enable(value: PDPeripherals) -> Option<()>
pub fn enable_accelerometer() -> Option<()>
pub fn enable_all() -> Option<()>
pub fn disable_all() -> Option<()>
pub const fn None() -> PDPeripherals
pub const fn Accelerometer() -> PDPeripherals
pub const fn All() -> PDPeripherals
Auto Trait Implementations§
impl RefUnwindSafe for Peripherals
impl Send for Peripherals
impl Sync for Peripherals
impl Unpin for Peripherals
impl UnwindSafe for Peripherals
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, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere U: From<T>,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere U: Into<T>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes