pub struct Context(/* private fields */);
Implementations§
Source§impl Context
impl Context
pub const fn new() -> Self
pub fn get_current_task_identifier(&self) -> TaskIdentifier
pub async fn set_task(&self, task: TaskIdentifier)
pub async fn clear_task(&self)
pub async fn call_abi<F, Fut, R>(&self, function: F) -> R
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