[−][src]Struct linux_embedded_hal::SysTimer
A periodic timer based on std::time::Instant, which is a
monotonically nondecreasing clock.
Implementations
impl SysTimer[src]
pub fn new() -> SysTimer[src]
Create a new timer instance.
The duration will be initialized to 0, so make sure to call start
with your desired timer duration before calling wait.
Trait Implementations
impl CountDown for SysTimer[src]
type Error = Infallible
An enumeration of CountDown errors. Read more
type Time = Duration
The unit of time used by this timer
pub fn try_start<T>(&mut self, count: T) -> Result<(), Self::Error> where
T: Into<Self::Time>, [src]
T: Into<Self::Time>,
pub fn try_wait(&mut self) -> Result<(), Self::Error>[src]
impl Periodic for SysTimer[src]
Auto Trait Implementations
impl RefUnwindSafe for SysTimer
impl Send for SysTimer
impl Sync for SysTimer
impl Unpin for SysTimer
impl UnwindSafe for SysTimer
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, 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>,