pub struct PromotionFailure { /* private fields */ }Expand description
Sealed nonterminal failure record. Its five terminal fields are always false and cannot be set by the caller.
Implementations§
Source§impl PromotionFailure
impl PromotionFailure
Sourcepub fn new(
transaction: &PromotionTransactionIdentity,
error: &PromotionError,
) -> Self
pub fn new( transaction: &PromotionTransactionIdentity, error: &PromotionError, ) -> Self
Converts an internal failure to a nonpromotable canonical envelope.
Trait Implementations§
Source§impl Clone for PromotionFailure
impl Clone for PromotionFailure
Source§fn clone(&self) -> PromotionFailure
fn clone(&self) -> PromotionFailure
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 PromotionFailure
impl Debug for PromotionFailure
Auto Trait Implementations§
impl Freeze for PromotionFailure
impl RefUnwindSafe for PromotionFailure
impl Send for PromotionFailure
impl Sync for PromotionFailure
impl Unpin for PromotionFailure
impl UnsafeUnpin for PromotionFailure
impl UnwindSafe for PromotionFailure
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