pub struct TaskContextHandle(/* private fields */);Implementations§
Source§impl TaskContextHandle
impl TaskContextHandle
pub fn borrow(&self) -> Ref<'_, TaskContext>
pub fn borrow_mut(&self) -> RefMut<'_, TaskContext>
pub fn get_rc<T: TaskLocalValue + 'static>(&self) -> Option<Rc<T>>
Sourcepub fn ptr_eq(&self, other: &Self) -> bool
pub fn ptr_eq(&self, other: &Self) -> bool
Whether self and other are handles onto the same TaskContext.
pub fn inherit_for_child(&self) -> Self
pub fn preflight_error(&self) -> Option<SemaError>
Trait Implementations§
Source§impl Clone for TaskContextHandle
impl Clone for TaskContextHandle
Source§fn clone(&self) -> TaskContextHandle
fn clone(&self) -> TaskContextHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for TaskContextHandle
impl Default for TaskContextHandle
Source§fn default() -> TaskContextHandle
fn default() -> TaskContextHandle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for TaskContextHandle
impl !Send for TaskContextHandle
impl !Sync for TaskContextHandle
impl !UnwindSafe for TaskContextHandle
impl Freeze for TaskContextHandle
impl Unpin for TaskContextHandle
impl UnsafeUnpin for TaskContextHandle
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