pub struct TimerTable { /* private fields */ }Implementations§
Source§impl TimerTable
impl TimerTable
Sourcepub fn create(
&self,
timeline: Timeline,
wakeup_type: TimerWakeup,
signal_event: Option<SignalEvent>,
) -> Result<TimerId, Errno>
pub fn create( &self, timeline: Timeline, wakeup_type: TimerWakeup, signal_event: Option<SignalEvent>, ) -> Result<TimerId, Errno>
Creates a new per-process interval timer.
The new timer is initially disarmed.
pub fn itimer_real(&self) -> IntervalTimerHandle
Sourcepub fn delete(
&self,
current_task: &CurrentTask,
id: TimerId,
) -> Result<(), Errno>
pub fn delete( &self, current_task: &CurrentTask, id: TimerId, ) -> Result<(), Errno>
Disarms and deletes a timer.
Sourcepub fn get_time(&self, id: TimerId) -> Result<itimerspec, Errno>
pub fn get_time(&self, id: TimerId) -> Result<itimerspec, Errno>
Fetches the time remaining until the next expiration of a timer, along with the interval setting of the timer.
Sourcepub fn get_overrun(&self, id: TimerId) -> Result<i32, Errno>
pub fn get_overrun(&self, id: TimerId) -> Result<i32, Errno>
Returns the overrun count for the last timer expiration.
Sourcepub fn set_time(
&self,
current_task: &CurrentTask,
id: TimerId,
flags: i32,
new_value: itimerspec,
) -> Result<itimerspec, Errno>
pub fn set_time( &self, current_task: &CurrentTask, id: TimerId, flags: i32, new_value: itimerspec, ) -> Result<itimerspec, Errno>
Arms (start) or disarms (stop) the timer identifierd by id. The new_value arg is a
pointer to an itimerspec structure that specifies the new initial value and the new
interval for the timer.
pub fn get_timer(&self, id: TimerId) -> Result<IntervalTimerHandle, Errno>
Trait Implementations§
Source§impl Debug for TimerTable
impl Debug for TimerTable
Source§impl Default for TimerTable
impl Default for TimerTable
Source§fn default() -> TimerTable
fn default() -> TimerTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for TimerTable
impl !RefUnwindSafe for TimerTable
impl Send for TimerTable
impl Sync for TimerTable
impl Unpin for TimerTable
impl !UnwindSafe for TimerTable
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<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]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 moreSource§impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.