pub struct Executor<'a, T, const LEN: usize = 32>where
T: ?Sized,{ /* private fields */ }
Expand description
A tiny stack-based, 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, const LEN: usize> Freeze for Executor<'a, T, LEN>where
T: ?Sized,
impl<'a, T, const LEN: usize> RefUnwindSafe for Executor<'a, T, LEN>where
T: RefUnwindSafe + ?Sized,
impl<'a, T, const LEN: usize> Send for Executor<'a, T, LEN>
impl<'a, T, const LEN: usize> Sync for Executor<'a, T, LEN>
impl<'a, T, const LEN: usize> Unpin for Executor<'a, T, LEN>where
T: ?Sized,
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