#[non_exhaustive]pub struct Screen {
pub route: Result<(), Unroutable>,
pub not_cached: Vec<Address>,
pub stand_ins: [Result<Route, Unroutable>; 2],
}Expand description
One trade direction as screen judges it for any trader.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.route: Result<(), Unroutable>Ok when the direction routes for any trader.
not_cached: Vec<Address>The accounts that both stand-ins need and the cache lacks. Fetch them, add them to the cache and screen again.
stand_ins: [Result<Route, Unroutable>; 2]trade for each stand-in trader.
Trait Implementations§
impl Eq for Screen
impl StructuralPartialEq for Screen
Auto Trait Implementations§
impl Freeze for Screen
impl RefUnwindSafe for Screen
impl Send for Screen
impl Sync for Screen
impl Unpin for Screen
impl UnsafeUnpin for Screen
impl UnwindSafe for Screen
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