Struct rppal::hal::Timer [−][src]
Implements the embedded-hal
CountDown
trait.
Implementations
impl Timer
[src]
Trait Implementations
impl Clone for Timer
[src]
impl Copy for Timer
[src]
impl CountDown for Timer
[src]
type Time = Duration
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Self::Time>,
[src]
T: Into<Self::Time>,
Starts the timer with a timeout
.
fn wait(&mut self) -> Result<(), Void>
[src]
Returns Ok
if the timer has wrapped.
impl Debug for Timer
[src]
impl Default for Timer
[src]
Auto Trait Implementations
impl RefUnwindSafe for Timer
[src]
impl Send for Timer
[src]
impl Sync for Timer
[src]
impl Unpin for Timer
[src]
impl UnwindSafe for Timer
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,