pub enum Task {
Job(Handle),
Process(Handle),
Thread(Handle),
UnknownOrdinal_(u64),
}
Variants§
Trait Implementations§
Source§impl EncodableOption for Box<Task>
impl EncodableOption for Box<Task>
Source§type EncodedOption = WireOptionalTask
type EncodedOption = WireOptionalTask
The wire type for the optional value.
Source§impl<___E> EncodeOption<___E> for Box<Task>
impl<___E> EncodeOption<___E> for Box<Task>
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireTask> for Task
impl TakeFrom<WireTask> for Task
Source§fn take_from(from: &WireTask) -> Self
fn take_from(from: &WireTask) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
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