Struct embedded_runtime::executor::FutureBox
source · #[repr(C, align(64))]pub struct FutureBox<Output = (), const SIZE: usize = 64> { /* private fields */ }👎Deprecated: A lot of unsafe code that is not necessary (use the
run!-macro instead)Expand description
A stack-allocated box for futures
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Output, const SIZE: usize> RefUnwindSafe for FutureBox<Output, SIZE>where Output: RefUnwindSafe,
impl<Output, const SIZE: usize> Send for FutureBox<Output, SIZE>where Output: Send,
impl<Output, const SIZE: usize> Sync for FutureBox<Output, SIZE>where Output: Sync,
impl<Output = (), const SIZE: usize = 64> !Unpin for FutureBox<Output, SIZE>
impl<Output, const SIZE: usize> UnwindSafe for FutureBox<Output, SIZE>where Output: UnwindSafe,
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
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more