pub enum Task {
Job(Job),
Process(Process),
Thread(Thread),
UnknownOrdinal_(u64),
}
Variants§
Trait Implementations§
Source§impl CompatFrom<Task> for Task
impl CompatFrom<Task> for Task
Source§fn compat_from(value: Task) -> Self
fn compat_from(value: Task) -> Self
Converts
value
into a value of this type.Source§impl CompatFrom<Task> for Task
impl CompatFrom<Task> for Task
Source§fn compat_from(value: Task) -> Self
fn compat_from(value: Task) -> Self
Converts
value
into a value of this type.Source§impl EncodableOption for Task
impl EncodableOption for Task
Source§type EncodedOption = WireOptionalTask
type EncodedOption = WireOptionalTask
The wire type for the optional value.
Source§impl<___E> EncodeOption<___E> for Task
impl<___E> EncodeOption<___E> for Task
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWireOption<WireOptionalTask> for Box<Task>
impl FromWireOption<WireOptionalTask> for Box<Task>
Source§fn from_wire_option(wire: WireOptionalTask) -> Option<Self>
fn from_wire_option(wire: WireOptionalTask) -> Option<Self>
Converts the given
wire
to an option of this type.Auto 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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire
to an option of this type.