pub enum ReplacementNotification {
Requote(RequoteNotification),
Venue(VenueNotification),
Original(OriginalNotification),
}Expand description
One reroute result for an original swap, streamed over replacementSubscribe: through
the router, directly to a venue, or the original swap replayed as the baseline. Nothing stands
in for the original. Tagged by kind, with the variant’s fields at the top level beside it.
Variants§
Requote(RequoteNotification)
A reroute through the router: the whole transaction re-quoted
("kind": "requote").
Venue(VenueNotification)
A reroute directly to a venue: one hop re-priced through a venue template
("kind": "directFill").
Original(OriginalNotification)
The original swap replayed as the baseline ("kind": "original").
Implementations§
Source§impl ReplacementNotification
impl ReplacementNotification
Sourcepub const fn core(&self) -> &ReplacementCore
pub const fn core(&self) -> &ReplacementCore
What every kind carries, whichever shape it arrived in.
Trait Implementations§
Source§impl Clone for ReplacementNotification
impl Clone for ReplacementNotification
Source§impl Debug for ReplacementNotification
impl Debug for ReplacementNotification
Source§impl<'de> Deserialize<'de> for ReplacementNotification
impl<'de> Deserialize<'de> for ReplacementNotification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for ReplacementNotification
impl Freeze for ReplacementNotificationwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<RerouteLegNotification>: Freeze,
PhantomData<String>: Freeze,
PhantomData<RouteHop>: Freeze,
impl Move for ReplacementNotification
impl RefUnwindSafe for ReplacementNotification
impl Send for ReplacementNotificationwhere
RawVecInner: Send,
impl Sync for ReplacementNotificationwhere
RawVecInner: Sync,
impl Unpin for ReplacementNotification
impl UnsafeUnpin for ReplacementNotificationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RerouteLegNotification>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<RouteHop>: UnsafeUnpin,
impl UnwindSafe for ReplacementNotificationwhere
RawVecInner: 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