Struct embedded_runtime::executor::Executor
source · pub struct Executor<'a, T, const LEN: usize = 32>where
T: ?Sized,{ /* private fields */ }
Expand description
A tiny, single-threaded async executor suitable for embedded runtimes
Generics
'a
: Tied to the lifetime of the pinned futures to execute (i.e. this executor must not outlive the futures it executes)T
: The type of futures to execute (e.g.dyn Future<Output = ()>
)LEN
: The maximum amount of top-level futures this executor can execute (defaults to32
)
Implementations§
Auto Trait Implementations§
impl<'a, T: ?Sized, const LEN: usize> RefUnwindSafe for Executor<'a, T, LEN>where T: RefUnwindSafe,
impl<'a, T: ?Sized, const LEN: usize> Send for Executor<'a, T, LEN>where T: Send,
impl<'a, T: ?Sized, const LEN: usize> Sync for Executor<'a, T, LEN>where T: Sync,
impl<'a, T: ?Sized, const LEN: usize> Unpin for Executor<'a, T, LEN>
impl<'a, T, const LEN: usize = 32> !UnwindSafe for Executor<'a, T, LEN>
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