pub struct Context { /* private fields */ }
Implementations§
Source§impl Context
impl Context
pub fn wait_for_event_raw_internal(&mut self, timeout_ms: usize) -> Result<&str>
Sourcepub fn wait_for_event_raw(&mut self, timeout_ms: usize) -> Result<String>
pub fn wait_for_event_raw(&mut self, timeout_ms: usize) -> Result<String>
Waits for an event using poll(), reads it but does not parse
Sourcepub fn wait_for_event(&mut self, timeout_ms: usize) -> Result<Event>
pub fn wait_for_event(&mut self, timeout_ms: usize) -> Result<Event>
Waits for an event using poll(), reads and parses it
Sourcepub fn fd(&self) -> RawFd
pub fn fd(&self) -> RawFd
Returns the devd socket file descriptor in case you want to select/poll on it together with other file descriptors
Sourcepub fn read_event(&mut self) -> Result<Event>
pub fn read_event(&mut self) -> Result<Event>
Reads an event and parses it. Use when polling on the raw fd by yourself
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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