pub struct TimerEventWatch { /* private fields */ }Expand description
A Epoll based event monitor.
-
0- Epoll instance. -
1- AtomicUsize amount of timers added
Trait Implementations§
Source§impl Debug for TimerEventWatch
impl Debug for TimerEventWatch
Source§impl Display for TimerEventWatch
impl Display for TimerEventWatch
Source§impl PartialEq for TimerEventWatch
impl PartialEq for TimerEventWatch
Source§impl TimerPollOps for TimerEventWatch
impl TimerPollOps for TimerEventWatch
Source§fn new() -> TimerResult<Self>
fn new() -> TimerResult<Self>
Creates new default instance. Read more
Source§fn delete<T: AsFd + Display>(&self, timer: &T) -> TimerResult<()>
fn delete<T: AsFd + Display>(&self, timer: &T) -> TimerResult<()>
Removes the specific timer’s FD from the event monitor. Read more
Source§fn poll(&self, timeout: Option<i32>) -> TimerResult<PollResult>
fn poll(&self, timeout: Option<i32>) -> TimerResult<PollResult>
Polls the event monitor for events. Depending on the
timeout the behaviour will
be different. Read moreSource§fn get_poll_interruptor(&self) -> PollInterrupt
fn get_poll_interruptor(&self) -> PollInterrupt
Source§fn interrupt_poll(&self) -> bool
fn interrupt_poll(&self) -> bool
Attempts to interrupt the poll operaiton. If successfull returns
true.Source§impl TimerPollOpsUnregister for TimerEventWatch
impl TimerPollOpsUnregister for TimerEventWatch
Source§fn unregister<T: AsTimerFd>(&self, timer: &T) -> TimerResult<()>
fn unregister<T: AsTimerFd>(&self, timer: &T) -> TimerResult<()>
Removes the specified timer
timer (which must implement AsTimerFd) from
the polling instance.impl Eq for TimerEventWatch
Auto Trait Implementations§
impl !Freeze for TimerEventWatch
impl RefUnwindSafe for TimerEventWatch
impl Send for TimerEventWatch
impl Sync for TimerEventWatch
impl Unpin for TimerEventWatch
impl UnwindSafe for TimerEventWatch
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