Struct souk::shared::task::task_result::TaskResult
source · pub struct TaskResult {
pub kind: TaskResultKind,
pub dry_run: Optional<DryRun>,
pub error: Optional<WorkerError>,
}
Fields§
§kind: TaskResultKind
§dry_run: Optional<DryRun>
§error: Optional<WorkerError>
Implementations§
source§impl TaskResult
impl TaskResult
pub fn new_done() -> Self
pub fn new_dry_run(dry_run: DryRun) -> Self
pub fn new_error(error: WorkerError) -> Self
pub fn new_cancelled() -> Self
Trait Implementations§
source§impl Clone for TaskResult
impl Clone for TaskResult
source§fn clone(&self) -> TaskResult
fn clone(&self) -> TaskResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TaskResult
impl Debug for TaskResult
source§impl Default for TaskResult
impl Default for TaskResult
source§impl<'de> Deserialize<'de> for TaskResult
impl<'de> Deserialize<'de> for TaskResult
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<TaskResult> for TaskResult
impl PartialEq<TaskResult> for TaskResult
source§fn eq(&self, other: &TaskResult) -> bool
fn eq(&self, other: &TaskResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TaskResult
impl Serialize for TaskResult
source§impl Type for TaskResult
impl Type for TaskResult
impl StructuralPartialEq for TaskResult
Auto Trait Implementations§
impl RefUnwindSafe for TaskResult
impl Send for TaskResult
impl Sync for TaskResult
impl Unpin for TaskResult
impl UnwindSafe for TaskResult
Blanket Implementations§
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere
T: Type + ?Sized,
§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.