pub struct RerouteAggregators(/* private fields */);Expand description
The aggregators a session re-quotes. Jupiter alone by default: the router builds Jupiter replacements, so other aggregators’ order flow is a cross-router counterfactual a run asks for deliberately. Parsed from one comma-separated string so a flag or an env var carries the set.
Implementations§
Source§impl RerouteAggregators
impl RerouteAggregators
pub fn new(aggregators: impl IntoIterator<Item = SwapAggregator>) -> Self
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§fn clone(&self) -> RerouteAggregators
fn clone(&self) -> RerouteAggregators
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 Freeze for RerouteAggregators
impl RefUnwindSafe for RerouteAggregators
impl Send for RerouteAggregators
impl Sync for RerouteAggregators
impl Unpin for RerouteAggregators
impl UnsafeUnpin for RerouteAggregators
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more