pub struct MachineTimer { /* private fields */ }Expand description
Marker struct for ownership of SIO Machine Timer
Implementations§
Source§impl MachineTimer
impl MachineTimer
Sourcepub fn set_enabled(&mut self, enabled: bool)
pub fn set_enabled(&mut self, enabled: bool)
Set whether the timer is enabled
Sourcepub fn set_fullspeed(&mut self, fullspeed: bool)
pub fn set_fullspeed(&mut self, fullspeed: bool)
Set the speed the clock runs at
Auto Trait Implementations§
impl Freeze for MachineTimer
impl RefUnwindSafe for MachineTimer
impl Send for MachineTimer
impl Sync for MachineTimer
impl Unpin for MachineTimer
impl UnsafeUnpin for MachineTimer
impl UnwindSafe for MachineTimer
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
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more