Enum Yield
pub enum Yield
Result of [yield_now()] or [yield_local()].
Variants
-
Executed Work was found and executed.
-
Idle No available work was found.
Trait Implementations
impl Clone for Yield
fn clone(&self) -> Self
impl Copy for Yield
impl Debug for Yield
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Yield
impl PartialEq for Yield
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for Yield
Auto Trait Implementations
impl Freeze for Yield
impl RefUnwindSafe for Yield
impl Send for Yield
impl Sync for Yield
impl Unpin for Yield
impl UnsafeUnpin for Yield
impl UnwindSafe for Yield
Blanket Implementations
impl<T> Any for Yield
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Yield
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Yield
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Yield
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Yield
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for Yield
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> ToOwned for Yield
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Yield
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Yield
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Yield
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>