Struct base_coroutine::Scheduler
source · #[repr(C)]pub struct Scheduler { /* private fields */ }
Implementations
sourceimpl Scheduler
impl Scheduler
pub fn current<'a>() -> &'a mut Scheduler
pub fn submit(
&mut self,
f: ContextFn<Option<&'static mut c_void>, Option<&'static mut c_void>>,
val: Option<&'static mut c_void>,
size: usize
)
pub fn try_schedule(&mut self) -> ObjectMap<usize>
pub fn try_timed_schedule(&mut self, timeout: Duration) -> ObjectMap<usize>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Scheduler
impl !Send for Scheduler
impl !Sync for Scheduler
impl Unpin for Scheduler
impl UnwindSafe for Scheduler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more