Enum ora_client::RawTaskResult
source · pub enum RawTaskResult {
Success {
output_format: TaskDataFormat,
output: Vec<u8>,
},
Failure {
reason: String,
},
Cancelled,
}
Expand description
A task result without additional context.
Variants§
Success
The task succeeded.
Fields
§
output_format: TaskDataFormat
The output format of the task, use the input data format if not known.
Failure
The task failed.
Cancelled
The task was cancelled.
Implementations§
source§impl RawTaskResult
impl RawTaskResult
sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true
if the raw task result is Success
.
sourcepub fn is_failure(&self) -> bool
pub fn is_failure(&self) -> bool
Returns true
if the raw task result is Failure
.
sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Returns true
if the raw task result is Cancelled
.
Trait Implementations§
source§impl Clone for RawTaskResult
impl Clone for RawTaskResult
source§fn clone(&self) -> RawTaskResult
fn clone(&self) -> RawTaskResult
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 moreAuto Trait Implementations§
impl Freeze for RawTaskResult
impl RefUnwindSafe for RawTaskResult
impl Send for RawTaskResult
impl Sync for RawTaskResult
impl Unpin for RawTaskResult
impl UnwindSafe for RawTaskResult
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