Trait open_coroutine_core::common::Current
source · pub trait Current<'c> {
// Required methods
fn init_current(current: &Self)
where Self: Sized;
fn current() -> Option<&'c Self>
where Self: Sized;
fn clean_current()
where Self: Sized;
}
Expand description
A trait implemented for which needs current()
.
Required Methods§
sourcefn init_current(current: &Self)where
Self: Sized,
fn init_current(current: &Self)where
Self: Sized,
Init the current.
sourcefn clean_current()where
Self: Sized,
fn clean_current()where
Self: Sized,
clean the current.