pub struct CurrentThread;Expand description
Run work on the current thread.
Trait Implementations§
Source§impl Clone for CurrentThread
impl Clone for CurrentThread
Source§fn clone(&self) -> CurrentThread
fn clone(&self) -> CurrentThread
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CurrentThread
impl Debug for CurrentThread
Source§impl Default for CurrentThread
impl Default for CurrentThread
Source§fn default() -> CurrentThread
fn default() -> CurrentThread
Returns the “default value” for a type. Read more
Source§impl ExportWork for CurrentThread
impl ExportWork for CurrentThread
Source§impl Hash for CurrentThread
impl Hash for CurrentThread
Source§impl Ord for CurrentThread
impl Ord for CurrentThread
Source§fn cmp(&self, other: &CurrentThread) -> Ordering
fn cmp(&self, other: &CurrentThread) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CurrentThread
impl PartialEq for CurrentThread
Source§impl PartialOrd for CurrentThread
impl PartialOrd for CurrentThread
impl Copy for CurrentThread
impl Eq for CurrentThread
impl StructuralPartialEq for CurrentThread
Auto Trait Implementations§
impl Freeze for CurrentThread
impl RefUnwindSafe for CurrentThread
impl Send for CurrentThread
impl Sync for CurrentThread
impl Unpin for CurrentThread
impl UnwindSafe for CurrentThread
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.