pub struct SyncReceipt {
pub key: StateKey,
pub successes: Vec<(ChainId, MessageId)>,
pub failures: Vec<(ChainId, XenithError)>,
pub status: SyncStatus,
pub store_written: bool,
}Expand description
The result of a SyncEngine::push call.
successes carries one entry per chain that accepted the message.
failures captures per-chain errors so the caller can retry selectively.
A push that encounters errors on some chains never returns Err — it
returns Ok with a SyncStatus::PartialFailure status instead.
store_written is true only when the local store was actually updated.
If every send failed and targets was non-empty, the store is left
untouched and store_written is false.
Fields§
§key: StateKey§successes: Vec<(ChainId, MessageId)>Chains that accepted the message: (destination, message_id).
failures: Vec<(ChainId, XenithError)>Chains whose send failed: (destination, error).
status: SyncStatus§store_written: booltrue if the local xenith_core::StateStore was updated.
Trait Implementations§
Source§impl Clone for SyncReceipt
impl Clone for SyncReceipt
Source§fn clone(&self) -> SyncReceipt
fn clone(&self) -> SyncReceipt
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 moreAuto Trait Implementations§
impl Freeze for SyncReceipt
impl RefUnwindSafe for SyncReceipt
impl Send for SyncReceipt
impl Sync for SyncReceipt
impl Unpin for SyncReceipt
impl UnsafeUnpin for SyncReceipt
impl UnwindSafe for SyncReceipt
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