pub struct PushOutcome {
pub accepted: usize,
pub deduped: usize,
}Expand description
What a push did. Not transactional: on an error mid-batch the already accepted prefix stays (retry-safe — a re-push of it dedups).
Fields§
§accepted: usizeOps newly admitted to the device’s relay-held chain.
deduped: usizeOps the relay already held (retransmission — op_id identical) or
that fall below its GC floor for the device (already covered by a
checkpoint).
Trait Implementations§
Source§impl Clone for PushOutcome
impl Clone for PushOutcome
Source§fn clone(&self) -> PushOutcome
fn clone(&self) -> PushOutcome
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 PushOutcome
impl Debug for PushOutcome
Source§impl Default for PushOutcome
impl Default for PushOutcome
Source§fn default() -> PushOutcome
fn default() -> PushOutcome
Returns the “default value” for a type. Read more
impl Eq for PushOutcome
Source§impl PartialEq for PushOutcome
impl PartialEq for PushOutcome
Source§fn eq(&self, other: &PushOutcome) -> bool
fn eq(&self, other: &PushOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PushOutcome
Auto Trait Implementations§
impl Freeze for PushOutcome
impl RefUnwindSafe for PushOutcome
impl Send for PushOutcome
impl Sync for PushOutcome
impl Unpin for PushOutcome
impl UnsafeUnpin for PushOutcome
impl UnwindSafe for PushOutcome
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