Struct notifier::NotifierContext [−][src]
pub struct NotifierContext<'a, Key: 'a> where
Key: Clone + Into<usize>,
usize: Into<Key>, { /* fields omitted */ }
Methods
impl<'a, Key: 'a> NotifierContext<'a, Key> where
Key: Clone + Into<usize>,
usize: Into<Key>,
[src]
impl<'a, Key: 'a> NotifierContext<'a, Key> where
Key: Clone + Into<usize>,
usize: Into<Key>,
pub fn add_trigger(&self) -> (Triggerer, Triggeree)
[src]
pub fn add_trigger(&self) -> (Triggerer, Triggeree)
pub fn queue(&self)
[src]
pub fn queue(&self)
pub fn add_fd(&self, fd: RawFd)
[src]
pub fn add_fd(&self, fd: RawFd)
pub fn remove_fd(&self, fd: RawFd)
[src]
pub fn remove_fd(&self, fd: RawFd)
pub fn add_instant(&self, instant: Instant) -> Slot
[src]
pub fn add_instant(&self, instant: Instant) -> Slot
pub fn remove_instant(&self, slot: Slot)
[src]
pub fn remove_instant(&self, slot: Slot)
Trait Implementations
impl<'a, Key: 'a> Notifier for NotifierContext<'a, Key> where
Key: Clone + Into<usize>,
usize: Into<Key>,
[src]
impl<'a, Key: 'a> Notifier for NotifierContext<'a, Key> where
Key: Clone + Into<usize>,
usize: Into<Key>,
type InstantSlot = Slot
fn queue(&self)
[src]
fn queue(&self)
Poll as soon as possible; equivalent to add_instant(Instant::now()).
fn add_fd(&self, fd: RawFd)
[src]
fn add_fd(&self, fd: RawFd)
Poll when we receive an edge-triggered event on this file descriptor.
fn remove_fd(&self, fd: RawFd)
[src]
fn remove_fd(&self, fd: RawFd)
No longer poll when we receive events on this file descriptor.
fn add_instant(&self, instant: Instant) -> Slot
[src]
fn add_instant(&self, instant: Instant) -> Slot
Poll at this (typically future) instant.
fn remove_instant(&self, slot: Slot)
[src]
fn remove_instant(&self, slot: Slot)
No longer poll at this specific previously added instant.
Auto Trait Implementations
impl<'a, Key> Send for NotifierContext<'a, Key> where
Key: Send + Sync,
impl<'a, Key> Send for NotifierContext<'a, Key> where
Key: Send + Sync,
impl<'a, Key> Sync for NotifierContext<'a, Key> where
Key: Send + Sync,
impl<'a, Key> Sync for NotifierContext<'a, Key> where
Key: Send + Sync,