#[repr(C)]pub struct Itimerspec {
pub it_interval: TimeSpec,
pub it_value: TimeSpec,
}Expand description
用于设置 POSIX 间隔定时器 (timer_create) 的结构。
Fields§
§it_interval: TimeSpec定时器周期 (timer period)
it_value: TimeSpec定时器初始值/到期时间 (timer expiration)
Trait Implementations§
Source§impl Clone for Itimerspec
impl Clone for Itimerspec
Source§fn clone(&self) -> Itimerspec
fn clone(&self) -> Itimerspec
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Itimerspec
impl Debug for Itimerspec
Source§impl PartialEq for Itimerspec
impl PartialEq for Itimerspec
impl Copy for Itimerspec
impl Eq for Itimerspec
impl StructuralPartialEq for Itimerspec
Auto Trait Implementations§
impl Freeze for Itimerspec
impl RefUnwindSafe for Itimerspec
impl Send for Itimerspec
impl Sync for Itimerspec
impl Unpin for Itimerspec
impl UnwindSafe for Itimerspec
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.