pub struct BoxStorage;
Expand description
A type representing Box
storage of a task
Trait Implementations§
Source§impl<S, F: Future> Storage<S, F> for BoxStorage
impl<S, F: Future> Storage<S, F> for BoxStorage
Source§type StoredTask = Box<Task<S, F, BoxStorage>>
type StoredTask = Box<Task<S, F, BoxStorage>>
The type of a stored Task. Read more
Source§fn into_raw(
task: Box<Task<S, F, BoxStorage>>,
) -> NonNull<Task<S, F, BoxStorage>>
fn into_raw( task: Box<Task<S, F, BoxStorage>>, ) -> NonNull<Task<S, F, BoxStorage>>
Source§fn from_raw(ptr: NonNull<Task<S, F, BoxStorage>>) -> Box<Task<S, F, BoxStorage>>
fn from_raw(ptr: NonNull<Task<S, F, BoxStorage>>) -> Box<Task<S, F, BoxStorage>>
Convert a raw task pointer into an owned, heap
allocated [
Task`] type Read moreAuto Trait Implementations§
impl Freeze for BoxStorage
impl RefUnwindSafe for BoxStorage
impl Send for BoxStorage
impl Sync for BoxStorage
impl Unpin for BoxStorage
impl UnwindSafe for BoxStorage
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