pub struct ErrorContract {
pub kind: ErrorKind,
pub message: String,
pub retryable: bool,
pub needs_user_action: bool,
pub retry_after_seconds: Option<u64>,
}Expand description
Serialisable error payload crossing the IPC boundary.
Fields§
§kind: ErrorKind§message: String§retryable: bool§needs_user_action: bool§retry_after_seconds: Option<u64>Trait Implementations§
Source§impl Clone for ErrorContract
impl Clone for ErrorContract
Source§fn clone(&self) -> ErrorContract
fn clone(&self) -> ErrorContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ErrorContract
impl Debug for ErrorContract
Source§impl<'de> Deserialize<'de> for ErrorContract
impl<'de> Deserialize<'de> for ErrorContract
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 From<&AppError> for ErrorContract
impl From<&AppError> for ErrorContract
Auto Trait Implementations§
impl Freeze for ErrorContract
impl RefUnwindSafe for ErrorContract
impl Send for ErrorContract
impl Sync for ErrorContract
impl Unpin for ErrorContract
impl UnsafeUnpin for ErrorContract
impl UnwindSafe for ErrorContract
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