Struct open_coroutine_core::event_loop::EventLoops
source · pub struct EventLoops {}
Implementations§
source§impl EventLoops
impl EventLoops
pub fn start()
pub fn stop()
sourcepub fn submit(
f: impl FnOnce(&Suspender<'_, (), ()>, ()) -> usize + 'static
) -> JoinHandle
pub fn submit( f: impl FnOnce(&Suspender<'_, (), ()>, ()) -> usize + 'static ) -> JoinHandle
todo This is actually an API for creating tasks, adding an API for creating coroutines
pub fn wait_event(timeout: Option<Duration>) -> Result<()>
pub fn wait_read_event(fd: c_int, timeout: Option<Duration>) -> Result<()>
pub fn wait_write_event(fd: c_int, timeout: Option<Duration>) -> Result<()>
pub fn del_event(fd: c_int)
pub fn del_read_event(fd: c_int)
pub fn del_write_event(fd: c_int)
Trait Implementations§
source§impl Clone for EventLoops
impl Clone for EventLoops
source§fn clone(&self) -> EventLoops
fn clone(&self) -> EventLoops
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EventLoops
impl Debug for EventLoops
impl Copy for EventLoops
Auto Trait Implementations§
impl RefUnwindSafe for EventLoops
impl Send for EventLoops
impl Sync for EventLoops
impl Unpin for EventLoops
impl UnwindSafe for EventLoops
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