pub struct TimerFileInfo { /* private fields */ }Expand description
Deadline interval information for this TimerFile.
When the file is read, the deadline is recomputed based on the current time and the set
interval. If the interval is 0, self.timer is cancelled after the file is read.
Implementations§
Source§impl TimerFileInfo
impl TimerFileInfo
pub fn new( next_deadline: TargetTime, interval_period: MonotonicDuration, ) -> Self
pub fn reset_timeline_change_counter(&self) -> i64
pub fn set_deadline(&mut self, new_deadline: TargetTime) -> &mut Self
pub fn set_interval(&mut self, new_interval: MonotonicDuration) -> &mut Self
Sourcepub fn set_timeline_change_observer(
&mut self,
observer: Option<TimelineChangeObserver>,
) -> &mut Self
pub fn set_timeline_change_observer( &mut self, observer: Option<TimelineChangeObserver>, ) -> &mut Self
Set the counter used for tracking changes to the underlying timeline. This counter gets
incremented on each timeline change by Starnix from within HrTimerManager.
Sourcepub fn set_cancel_on_set(&mut self, value: bool) -> &mut Self
pub fn set_cancel_on_set(&mut self, value: bool) -> &mut Self
Mark the timer as “cancel on set”. Such a timer will report ECANCELED on read if armed with a zero valued realtime timeline, but will report data available for read when used in epoll.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimerFileInfo
impl !RefUnwindSafe for TimerFileInfo
impl Send for TimerFileInfo
impl Sync for TimerFileInfo
impl Unpin for TimerFileInfo
impl !UnwindSafe for TimerFileInfo
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.