pub enum OrderResult<T> {
Success(T),
Failed {
error: EMSError,
order: Box<Order>,
is_retryable: bool,
},
}Expand description
Result for an individual order within a batch operation
Variants§
Implementations§
Source§impl<T> OrderResult<T>
impl<T> OrderResult<T>
Sourcepub const fn is_success(&self) -> bool
pub const fn is_success(&self) -> bool
Check if this result represents success
Sourcepub const fn is_retryable(&self) -> bool
pub const fn is_retryable(&self) -> bool
Check if this result can be retried
Sourcepub fn failed_order(&self) -> Option<&Order>
pub fn failed_order(&self) -> Option<&Order>
Get the order if this is a failure
Trait Implementations§
Source§impl<T: Clone> Clone for OrderResult<T>
impl<T: Clone> Clone for OrderResult<T>
Source§fn clone(&self) -> OrderResult<T>
fn clone(&self) -> OrderResult<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for OrderResult<T>where
T: Freeze,
impl<T> !RefUnwindSafe for OrderResult<T>
impl<T> Send for OrderResult<T>where
T: Send,
impl<T> Sync for OrderResult<T>where
T: Sync,
impl<T> Unpin for OrderResult<T>where
T: Unpin,
impl<T> !UnwindSafe for OrderResult<T>
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