pub struct TimerFd(/* private fields */);Implementations§
Source§impl TimerFd
impl TimerFd
pub fn new( label: Cow<'static, str>, timer_type: TimerType, timer_flags: TimerFlags, ) -> TimerPortResult<Self>
pub fn get_timer(&self) -> &TimerFdInternal ⓘ
Trait Implementations§
Source§impl AsFd for TimerFd
impl AsFd for TimerFd
Source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
Source§impl FdTimerMarker for TimerFd
impl FdTimerMarker for TimerFd
fn clone_timer(&self) -> TimerFd
fn get_strong_count(&self) -> usize
Source§impl FdTimerRead for TimerFd
impl FdTimerRead for TimerFd
Source§fn read(&self) -> TimerPortResult<TimerReadRes<u64>>
fn read(&self) -> TimerPortResult<TimerReadRes<u64>>
Attempts to read the timer. The realization is different on different OS. The main purpose
is to check if timer is ready (ended). Read more
impl Eq for TimerFd
Auto Trait Implementations§
impl Freeze for TimerFd
impl RefUnwindSafe for TimerFd
impl Send for TimerFd
impl Sync for TimerFd
impl Unpin for TimerFd
impl UnwindSafe for TimerFd
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