std::task::Context
pub struct Context<'a>
- Kind
- struct
- Module
std::task- Since
- 1.36.0
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::task in the Rust reference. This page has 51 cards.
pub struct Context<'a>
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn ext(&mut self) -> &mut (dyn Any + 'static)
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_waker(waker: &'a Waker) -> Context<'a>
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn local_waker(&self) -> &'a LocalWaker
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn waker(&self) -> &'a Waker
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct ContextBuilder<'a>
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn build(self) -> Context<'a>
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn ext(self, data: &'a mut (dyn Any + 'static)) -> ContextBuilder<'a>
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from(cx: &'a mut Context<'_>) -> ContextBuilder<'a>
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_waker(waker: &'a Waker) -> ContextBuilder<'a>
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn local_waker( self, local_waker: &'a LocalWaker, ) -> ContextBuilder<'a>
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn waker(self, waker: &'a Waker) -> ContextBuilder<'a>
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn local_waker_fn<F>(f: F) -> LocalWaker where F: Fn() + Send + Sync + 'static
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub trait LocalWake
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn wake(self: Rc<Self>)
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn wake_by_ref(self: &Rc<Self>)
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct LocalWaker
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn data(&self) -> *const ()
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_fn_ptr(f: fn()) -> LocalWaker
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn from_raw(waker: RawWaker) -> LocalWaker
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn new( data: *const (), vtable: &'static RawWakerVTable, ) -> LocalWaker
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn noop() -> &'static LocalWaker
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn vtable(&self) -> &'static RawWakerVTable
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wake(self)
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wake_by_ref(&self)
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn will_wake(&self, other: &LocalWaker) -> bool
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub enum Poll<T>
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_pending(&self) -> bool
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_ready(&self) -> bool
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map<U, F>(self, f: F) -> Poll<U> where F: FnOnce(T) -> U
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map_err<U, F>(self, f: F) -> Poll<Result<T, U>> where F: FnOnce(E) -> U
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map_ok<U, F>(self, f: F) -> Poll<Result<U, E>> where F: FnOnce(T) -> U
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct RawWaker
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new(data: *const (), vtable: &'static RawWakerVTable) -> RawWaker
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct RawWakerVTable
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new( clone: unsafe fn(*const ()) -> RawWaker, wake: unsafe fn(*const ()), wake_by_ref: unsafe fn(*const ()), drop: unsafe fn(*const ()), ) -> RawWakerVTable
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub macro ready($e:expr) { ... }
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub trait Wake
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn wake(self: Arc<Self>)
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn wake_by_ref(self: &Arc<Self>)
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Waker
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn data(&self) -> *const ()
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_fn_ptr(f: fn()) -> Waker
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn from_raw(waker: RawWaker) -> Waker
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn new( data: *const (), vtable: &'static RawWakerVTable, ) -> Waker
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn noop() -> &'static Waker
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn vtable(&self) -> &'static RawWakerVTable
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wake(self)
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn wake_by_ref(&self)
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn will_wake(&self, other: &Waker) -> bool
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn waker_fn<F>(f: F) -> Waker where F: Fn() + Send + Sync + 'static
std::taskSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.