pub enum WireBridgeCommand<T> {
Start {
idempotency_key: Option<String>,
request_id: Option<String>,
},
Send {
payload: T,
idempotency_key: Option<String>,
request_id: Option<String>,
},
Ack {
ack_for_seq: u64,
idempotency_key: Option<String>,
request_id: Option<String>,
},
Nack {
ack_for_seq: u64,
error: String,
idempotency_key: Option<String>,
request_id: Option<String>,
},
Close {
reason: Option<String>,
idempotency_key: Option<String>,
},
AckTimeout {
seq: u64,
attempt: u32,
observed_at_ms: Option<u64>,
},
}Expand description
WireBridgeCommand variants.
Variants§
Start
Start variant.
Fields
Send
Send variant.
Fields
§
payload: Tpayload field for payload.
Ack
Ack variant.
Fields
Nack
Nack variant.
Fields
Close
Close variant.
Fields
AckTimeout
AckTimeout variant.
Trait Implementations§
Source§impl<T: Clone> Clone for WireBridgeCommand<T>
impl<T: Clone> Clone for WireBridgeCommand<T>
Source§fn clone(&self) -> WireBridgeCommand<T>
fn clone(&self) -> WireBridgeCommand<T>
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<T: Debug> Debug for WireBridgeCommand<T>
impl<T: Debug> Debug for WireBridgeCommand<T>
Source§impl<T: PartialEq> PartialEq for WireBridgeCommand<T>
impl<T: PartialEq> PartialEq for WireBridgeCommand<T>
impl<T: Eq> Eq for WireBridgeCommand<T>
impl<T> StructuralPartialEq for WireBridgeCommand<T>
Auto Trait Implementations§
impl<T> Freeze for WireBridgeCommand<T>where
T: Freeze,
impl<T> RefUnwindSafe for WireBridgeCommand<T>where
T: RefUnwindSafe,
impl<T> Send for WireBridgeCommand<T>where
T: Send,
impl<T> Sync for WireBridgeCommand<T>where
T: Sync,
impl<T> Unpin for WireBridgeCommand<T>where
T: Unpin,
impl<T> UnsafeUnpin for WireBridgeCommand<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WireBridgeCommand<T>where
T: 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.