pub struct EventLoop<'a> { /* private fields */ }
Implementations§
Source§impl<'a> EventLoop<'a>
impl<'a> EventLoop<'a>
pub fn next() -> &'static mut EventLoop<'static>
pub fn submit( f: UserFunc<'_, &'static mut c_void, (), &'static mut c_void>, param: &'static mut c_void, size: usize, ) -> Result<JoinHandle>
pub fn round_robin_schedule() -> Result<()>
pub fn round_robin_timed_schedule(timeout_time: u64) -> Result<()>
pub fn round_robin_timeout_schedule(timeout_time: u64) -> Result<()>
pub fn round_robin_del_event(fd: c_int)
pub fn round_robin_del_read_event(fd: c_int)
pub fn round_robin_del_write_event(fd: c_int)
pub fn add_read_event(&mut self, fd: c_int) -> Result<()>
pub fn add_write_event(&mut self, fd: c_int) -> Result<()>
pub fn wait_read_event( &mut self, fd: c_int, timeout: Option<Duration>, ) -> Result<()>
pub fn wait_write_event( &mut self, fd: c_int, timeout: Option<Duration>, ) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for EventLoop<'a>
impl<'a> RefUnwindSafe for EventLoop<'a>
impl<'a> !Sync for EventLoop<'a>
impl<'a> Unpin for EventLoop<'a>
impl<'a> !UnwindSafe for EventLoop<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more