pub struct TaskErrorCode(pub u16);
Expand description
TaskErrorCode
represents the converted response of an
ReturnValues::ErrorCode
when its communicated that a async task
or function failed.
Usually when the only response is ReturnValues::ErrorCode
when
the response hint provided did not match that.
Tuple Fields§
§0: u16
Implementations§
Trait Implementations§
Source§impl Clone for TaskErrorCode
impl Clone for TaskErrorCode
Source§fn clone(&self) -> TaskErrorCode
fn clone(&self) -> TaskErrorCode
Returns a duplicate 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 TaskErrorCode
impl Debug for TaskErrorCode
Source§impl Display for TaskErrorCode
impl Display for TaskErrorCode
Source§impl Error for TaskErrorCode
impl Error for TaskErrorCode
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ReturnValues> for TaskErrorCode
impl From<ReturnValues> for TaskErrorCode
Source§fn from(value: ReturnValues) -> Self
fn from(value: ReturnValues) -> Self
Converts to this type from the input type.
Source§impl From<TaskErrorCode> for MemoryAllocationError
impl From<TaskErrorCode> for MemoryAllocationError
Source§fn from(value: TaskErrorCode) -> Self
fn from(value: TaskErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<u16> for TaskErrorCode
impl From<u16> for TaskErrorCode
Source§impl Hash for TaskErrorCode
impl Hash for TaskErrorCode
Source§impl PartialEq for TaskErrorCode
impl PartialEq for TaskErrorCode
impl Copy for TaskErrorCode
impl Eq for TaskErrorCode
impl StructuralPartialEq for TaskErrorCode
Auto Trait Implementations§
impl Freeze for TaskErrorCode
impl RefUnwindSafe for TaskErrorCode
impl Send for TaskErrorCode
impl Sync for TaskErrorCode
impl Unpin for TaskErrorCode
impl UnwindSafe for TaskErrorCode
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