#[non_exhaustive]pub struct RouteAttempt {
pub index: usize,
pub route: String,
pub plan: Plan,
pub error: Option<String>,
}Expand description
One attempted route during a single Converter::convert call.
The report’s attempts list records every route try in order, including the
successful one, so callers can explain to users why a preferred route was
skipped instead of silently falling back.
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.index: usizeZero-based position of this attempt in the fallback order.
route: StringHuman-readable rendering of the route, e.g. txt→json via builtin.
plan: PlanAdapter-declared plan that was executed (or attempted).
error: Option<String>Rendered failure for rejected routes; None for the accepted route.
Implementations§
Trait Implementations§
Source§impl Clone for RouteAttempt
impl Clone for RouteAttempt
Auto Trait Implementations§
impl Forget for RouteAttempt
impl Freeze for RouteAttempt
impl RefUnwindSafe for RouteAttempt
impl Send for RouteAttempt
impl Sync for RouteAttempt
impl Unpin for RouteAttempt
impl UnsafeUnpin for RouteAttempt
impl UnwindSafe for RouteAttempt
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