pub struct TimerEventWatch { /* private fields */ }Expand description
A Epoll based event monitor.
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 interrupt_poll(&self) -> bool
fn interrupt_poll(&self) -> bool
Interrupts poll genrally.
Source§fn new() -> TimerResult<Self>
fn new() -> TimerResult<Self>
Creates new default instance. Read more
Source§fn add(&self, timer: TimerFd) -> TimerResult<()>
fn add(&self, timer: TimerFd) -> TimerResult<()>
Adds the timer to the event monitor. It accepts any reference to instance which
implements [AsFd] and it is not limited specificly to timers. Maybe later this
behaviour will me modified. Read more
Source§fn delete<FD: FdTimerMarker>(&self, timer: &FD) -> TimerResult<()>
fn delete<FD: FdTimerMarker>(&self, timer: &FD) -> TimerResult<()>
Removes the specific timer’s FD from the event monitor. Read more
Source§fn poll(&self, timeout: Option<i32>) -> TimerResult<Option<Vec<PollEventType>>>
fn poll(&self, timeout: Option<i32>) -> TimerResult<Option<Vec<PollEventType>>>
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
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