pub struct CoroutineId { /* private fields */ }Expand description
Generation-bearing identity of one coroutine owned by a local executor.
Implementations§
Source§impl CoroutineId
impl CoroutineId
Sourcepub const fn owner_thread(self) -> ThreadId
pub const fn owner_thread(self) -> ThreadId
Returns the scheduler thread that owns this coroutine.
Sourcepub const fn generation(self) -> u64
pub const fn generation(self) -> u64
Returns the executor-local allocation generation.
Trait Implementations§
Source§impl Clone for CoroutineId
impl Clone for CoroutineId
Source§fn clone(&self) -> CoroutineId
fn clone(&self) -> CoroutineId
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 moreimpl Copy for CoroutineId
Source§impl Debug for CoroutineId
impl Debug for CoroutineId
impl Eq for CoroutineId
Source§impl Hash for CoroutineId
impl Hash for CoroutineId
Source§impl PartialEq for CoroutineId
impl PartialEq for CoroutineId
impl StructuralPartialEq for CoroutineId
Auto Trait Implementations§
impl Freeze for CoroutineId
impl RefUnwindSafe for CoroutineId
impl Send for CoroutineId
impl Sync for CoroutineId
impl Unpin for CoroutineId
impl UnsafeUnpin for CoroutineId
impl UnwindSafe for CoroutineId
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