pub struct Executor { /* private fields */ }Expand description
oveRTOS-native embassy executor.
Implementations§
Source§impl Executor
impl Executor
Sourcepub fn take() -> Result<&'static mut Self>
pub fn take() -> Result<&'static mut Self>
Construct the global executor and return an exclusive reference.
May only be called once per process; subsequent calls return
Error::Inval.
In heap mode the executor lives in a leaked Box; in
zero-heap mode it lives in a function-scope static mut
[MaybeUninit] slot. Either way the returned reference has
'static lifetime.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Executor
impl RefUnwindSafe for Executor
impl Unpin for Executor
impl UnsafeUnpin for Executor
impl !UnwindSafe for Executor
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