pub struct FailureEnvelope { /* private fields */ }Expand description
Portable failure payload. Execution identity is carried by the surrounding event or resource receipt rather than flattened into this message.
Implementations§
Source§impl FailureEnvelope
impl FailureEnvelope
pub fn new( domain: FailureDomain, code: impl Into<String>, message: impl Into<String>, retryable: bool, ) -> Result<Self, VNextError>
pub fn validate(&self) -> Result<(), VNextError>
pub fn with_resource_snapshot( self, snapshot: PlanRuntimeResourceSnapshot, ) -> Result<Self, VNextError>
pub const fn domain(&self) -> FailureDomain
pub fn code(&self) -> &str
pub fn message(&self) -> &str
pub const fn retryable(&self) -> bool
pub const fn resource_snapshot(&self) -> Option<&PlanRuntimeResourceSnapshot>
pub fn decode_untrusted( bytes: &[u8], ) -> Result<UnvalidatedFailureEnvelope, VNextError>
Trait Implementations§
Source§impl Clone for FailureEnvelope
impl Clone for FailureEnvelope
Source§fn clone(&self) -> FailureEnvelope
fn clone(&self) -> FailureEnvelope
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 FailureEnvelope
impl Debug for FailureEnvelope
impl Eq for FailureEnvelope
Source§impl PartialEq for FailureEnvelope
impl PartialEq for FailureEnvelope
Source§impl Serialize for FailureEnvelope
impl Serialize for FailureEnvelope
impl StructuralPartialEq for FailureEnvelope
Auto Trait Implementations§
impl Freeze for FailureEnvelope
impl RefUnwindSafe for FailureEnvelope
impl Send for FailureEnvelope
impl Sync for FailureEnvelope
impl Unpin for FailureEnvelope
impl UnsafeUnpin for FailureEnvelope
impl UnwindSafe for FailureEnvelope
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