pub enum WireBridgeEvent<TOutbound, TInbound> {
Show 13 variants
Outbound {
envelope: WireBridgeEnvelope<TOutbound>,
},
Inbound {
envelope: WireBridgeEnvelope<TInbound>,
},
Ack {
ack_for_seq: u64,
envelope: WireBridgeEnvelope<TInbound>,
outbound: WireBridgeEnvelope<TOutbound>,
},
Nack {
ack_for_seq: u64,
envelope: WireBridgeEnvelope<TInbound>,
outbound: WireBridgeEnvelope<TOutbound>,
error: String,
},
Timeout {
seq: u64,
attempt: u32,
},
Retry {
seq: u64,
attempt: u32,
delay_ms: u64,
error: String,
},
Exhausted {
seq: u64,
attempt: u32,
error: String,
},
Cursor {
cursor: u64,
},
Duplicate {
seq: u64,
cursor: u64,
},
OutOfOrder {
seq: u64,
expected: u64,
},
SessionMismatch {
expected: String,
actual: String,
},
LateReceipt {
receipt: WireBridgeReceipt,
ack_for_seq: u64,
},
Invalid {
error: String,
},
}Expand description
WireBridgeEvent variants.
Variants§
Outbound
Outbound variant.
Fields
§
envelope: WireBridgeEnvelope<TOutbound>envelope field for envelope.
Inbound
Inbound variant.
Fields
§
envelope: WireBridgeEnvelope<TInbound>envelope field for envelope.
Ack
Ack variant.
Fields
§
envelope: WireBridgeEnvelope<TInbound>envelope field for envelope.
§
outbound: WireBridgeEnvelope<TOutbound>outbound field for outbound.
Nack
Nack variant.
Fields
§
envelope: WireBridgeEnvelope<TInbound>envelope field for envelope.
§
outbound: WireBridgeEnvelope<TOutbound>outbound field for outbound.
Timeout
Timeout variant.
Retry
Retry variant.
Fields
Exhausted
Exhausted variant.
Fields
Cursor
Cursor variant.
Duplicate
Duplicate variant.
OutOfOrder
OutOfOrder variant.
SessionMismatch
SessionMismatch variant.
LateReceipt
LateReceipt variant.
Fields
§
receipt: WireBridgeReceiptreceipt field for receipt.
Invalid
Invalid variant.
Trait Implementations§
Source§impl<TOutbound: Clone, TInbound: Clone> Clone for WireBridgeEvent<TOutbound, TInbound>
impl<TOutbound: Clone, TInbound: Clone> Clone for WireBridgeEvent<TOutbound, TInbound>
Source§fn clone(&self) -> WireBridgeEvent<TOutbound, TInbound>
fn clone(&self) -> WireBridgeEvent<TOutbound, TInbound>
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<TOutbound: PartialEq, TInbound: PartialEq> PartialEq for WireBridgeEvent<TOutbound, TInbound>
impl<TOutbound: PartialEq, TInbound: PartialEq> PartialEq for WireBridgeEvent<TOutbound, TInbound>
Source§fn eq(&self, other: &WireBridgeEvent<TOutbound, TInbound>) -> bool
fn eq(&self, other: &WireBridgeEvent<TOutbound, TInbound>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<TOutbound: Eq, TInbound: Eq> Eq for WireBridgeEvent<TOutbound, TInbound>
impl<TOutbound, TInbound> StructuralPartialEq for WireBridgeEvent<TOutbound, TInbound>
Auto Trait Implementations§
impl<TOutbound, TInbound> Freeze for WireBridgeEvent<TOutbound, TInbound>
impl<TOutbound, TInbound> RefUnwindSafe for WireBridgeEvent<TOutbound, TInbound>where
TOutbound: RefUnwindSafe,
TInbound: RefUnwindSafe,
impl<TOutbound, TInbound> Send for WireBridgeEvent<TOutbound, TInbound>
impl<TOutbound, TInbound> Sync for WireBridgeEvent<TOutbound, TInbound>
impl<TOutbound, TInbound> Unpin for WireBridgeEvent<TOutbound, TInbound>
impl<TOutbound, TInbound> UnsafeUnpin for WireBridgeEvent<TOutbound, TInbound>where
TOutbound: UnsafeUnpin,
TInbound: UnsafeUnpin,
impl<TOutbound, TInbound> UnwindSafe for WireBridgeEvent<TOutbound, TInbound>where
TOutbound: UnwindSafe,
TInbound: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.