pub struct ClosureOnce<T, D> { /* private fields */ }Expand description
A common implementation of RelocateFnOnce
Construct this using the relocate_once function.
Trait Implementations§
Source§impl<T, D> Clone for ClosureOnce<T, D>where
D: Clone,
impl<T, D> Clone for ClosureOnce<T, D>where
D: Clone,
Source§impl<T, D> RelocateFnOnce<T> for ClosureOnce<T, D>where
D: ThreadAware,
impl<T, D> RelocateFnOnce<T> for ClosureOnce<T, D>where
D: ThreadAware,
Source§impl<T, D> ThreadAware for ClosureOnce<T, D>where
D: ThreadAware,
impl<T, D> ThreadAware for ClosureOnce<T, D>where
D: ThreadAware,
Source§fn relocated(self, source: MemoryAffinity, destination: PinnedAffinity) -> Self
fn relocated(self, source: MemoryAffinity, destination: PinnedAffinity) -> Self
Consume a value and return a value in the destination affinity. Read more
impl<T: Copy, D: Copy> Copy for ClosureOnce<T, D>
Auto Trait Implementations§
impl<T, D> Freeze for ClosureOnce<T, D>where
D: Freeze,
impl<T, D> RefUnwindSafe for ClosureOnce<T, D>where
D: RefUnwindSafe,
impl<T, D> Send for ClosureOnce<T, D>where
D: Send,
impl<T, D> Sync for ClosureOnce<T, D>where
D: Sync,
impl<T, D> Unpin for ClosureOnce<T, D>where
D: Unpin,
impl<T, D> UnwindSafe for ClosureOnce<T, D>where
D: 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