Struct FnContext

pub struct FnContext { /* private fields */ }

Provides the calling context to a closure called by join_context.

Implementations

impl FnContext

fn migrated(&self) -> bool

Returns true if the closure was called from a different thread than it was provided from.

Trait Implementations

impl Debug for FnContext

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl !Send for FnContext

impl !Sync for FnContext

impl Freeze for FnContext

impl RefUnwindSafe for FnContext

impl Unpin for FnContext

impl UnsafeUnpin for FnContext

impl UnwindSafe for FnContext

Blanket Implementations

impl<T> Any for FnContext where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for FnContext where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for FnContext where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for FnContext

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for FnContext

const ALIGN: usize = _;
type Init = T;
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T, U> Into<U> for FnContext where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for FnContext where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for FnContext where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>