pub enum SwapScope {
TopLevel,
Nested,
Venue,
}Expand description
Where a rerouted swap ran in its transaction.
Variants§
TopLevel
A router instruction of the transaction’s own, rerouted in its place.
Nested
A router another instruction CPI’d, rerouted on its own for a funded stand-in taker.
Venue
A venue call no router reading owns, read from the transaction’s flows and re-quoted on its own the same way.
Implementations§
Trait Implementations§
impl Copy for SwapScope
Source§impl<'de> Deserialize<'de> for SwapScope
impl<'de> Deserialize<'de> for SwapScope
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
impl Eq for SwapScope
Source§impl Ord for SwapScope
impl Ord for SwapScope
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for SwapScope
impl PartialOrd for SwapScope
impl StructuralPartialEq for SwapScope
Auto Trait Implementations§
impl Forget for SwapScope
impl Freeze for SwapScope
impl Move for SwapScope
impl RefUnwindSafe for SwapScope
impl Send for SwapScope
impl Sync for SwapScope
impl Unpin for SwapScope
impl UnsafeUnpin for SwapScope
impl UnwindSafe for SwapScope
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