#[repr(C)]pub struct ITimerVal {
pub interval: TimeVal,
pub value: TimeVal,
}Expand description
定时器结构体,表示间隔和当前值(对应 C 语言中的 struct itimerval)
Fields§
§interval: TimeVal重复触发的间隔时间(interval > 0 表示周期性定时器)
value: TimeVal当前倒计时的剩余时间(初始超时时长)
Trait Implementations§
impl Copy for ITimerVal
Auto Trait Implementations§
impl Freeze for ITimerVal
impl RefUnwindSafe for ITimerVal
impl Send for ITimerVal
impl Sync for ITimerVal
impl Unpin for ITimerVal
impl UnwindSafe for ITimerVal
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