pub enum Dispatch {
Matched {
key: TransactionKey,
outputs: Vec<Output>,
},
Created {
key: TransactionKey,
outputs: Vec<Output>,
},
Unmatched(Box<Message>),
}Expand description
Where a message went.
Variants§
Matched
It matched a transaction, which produced these outputs.
Fields
§
key: TransactionKeyThe transaction it matched.
Created
It created a new server transaction.
Fields
§
key: TransactionKeyThe new transaction’s key.
Unmatched(Box<Message>)
It matched nothing.
Passed up rather than dropped. An unmatched response may be a stray fork answer the core has no business discarding silently, and an unmatched ACK for a 2xx is normal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dispatch
impl RefUnwindSafe for Dispatch
impl Send for Dispatch
impl Sync for Dispatch
impl Unpin for Dispatch
impl UnsafeUnpin for Dispatch
impl UnwindSafe for Dispatch
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