pub struct RerouteAggregators(/* private fields */);Expand description
The aggregators a session reroutes. Jupiter alone by default: the router builds Jupiter replacements,
so other aggregators’ order flow is a cross-router counterfactual a session asks for
deliberately. On the wire, an array such as ["jupiter", "okx"]. Also parsed from one
comma-separated string ("jupiter,okx") so a flag or an env var carries the set.
Implementations§
Source§impl RerouteAggregators
impl RerouteAggregators
Sourcepub fn new(aggregators: impl IntoIterator<Item = SwapAggregator>) -> Self
pub fn new(aggregators: impl IntoIterator<Item = SwapAggregator>) -> Self
The set of aggregators; repeats collapse.
pub fn contains(&self, aggregator: SwapAggregator) -> bool
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for RerouteAggregators
impl Clone for RerouteAggregators
Source§impl Debug for RerouteAggregators
impl Debug for RerouteAggregators
Source§impl Default for RerouteAggregators
impl Default for RerouteAggregators
Source§impl<'de> Deserialize<'de> for RerouteAggregators
impl<'de> Deserialize<'de> for RerouteAggregators
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
Source§impl Display for RerouteAggregators
impl Display for RerouteAggregators
impl Eq for RerouteAggregators
Source§impl FromStr for RerouteAggregators
impl FromStr for RerouteAggregators
Source§impl PartialEq for RerouteAggregators
impl PartialEq for RerouteAggregators
Source§impl Serialize for RerouteAggregators
impl Serialize for RerouteAggregators
impl StructuralPartialEq for RerouteAggregators
Auto Trait Implementations§
impl Forget for RerouteAggregators
impl Freeze for RerouteAggregatorswhere
*const LeafNode<SwapAggregator, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(SwapAggregator, SetValZST)>>: Freeze,
impl Move for RerouteAggregators
impl RefUnwindSafe for RerouteAggregators
impl Send for RerouteAggregatorswhere
NodeRef<Owned, SwapAggregator, SetValZST, LeafOrInternal>: Send,
BoxRaw<(SwapAggregator, SetValZST)>: Send,
impl Sync for RerouteAggregatorswhere
NodeRef<Owned, SwapAggregator, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(SwapAggregator, SetValZST)>: Sync,
impl Unpin for RerouteAggregatorswhere
*const LeafNode<SwapAggregator, SetValZST> is !null: Unpin,
Box<(SwapAggregator, SetValZST)>: Unpin,
impl UnsafeUnpin for RerouteAggregatorswhere
*const LeafNode<SwapAggregator, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(SwapAggregator, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for RerouteAggregators
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