#[non_exhaustive]pub enum RouteSource {
Heuristic,
Model,
Caller,
Memory,
Explore,
}Expand description
Where a decision came from.
Worth reporting because the four differ in what a caller should do about a bad outcome. A caller decision is the caller’s own; a memory decision says the caller’s records drove it and clearing them changes the answer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Heuristic
The rules decided, with nothing remembered about this site.
Model
Weights decided.
Caller
The caller fixed the settings and the router passed them through.
Memory
What the caller remembers about this site changed the answer.
Explore
The client took a different action than the router picked, on purpose, so that something is learned about the arms nobody pulls. A decision marked this way is not a recommendation and should not be read as one.
Trait Implementations§
Source§impl Clone for RouteSource
impl Clone for RouteSource
Source§fn clone(&self) -> RouteSource
fn clone(&self) -> RouteSource
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 moreimpl Copy for RouteSource
Source§impl Debug for RouteSource
impl Debug for RouteSource
Source§impl Default for RouteSource
impl Default for RouteSource
Source§fn default() -> RouteSource
fn default() -> RouteSource
Returns the “default value” for a type. Read more
impl Eq for RouteSource
Source§impl Hash for RouteSource
impl Hash for RouteSource
Source§impl PartialEq for RouteSource
impl PartialEq for RouteSource
impl StructuralPartialEq for RouteSource
Auto Trait Implementations§
impl Forget for RouteSource
impl Freeze for RouteSource
impl Move for RouteSource
impl RefUnwindSafe for RouteSource
impl Send for RouteSource
impl Sync for RouteSource
impl Unpin for RouteSource
impl UnsafeUnpin for RouteSource
impl UnwindSafe for RouteSource
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