#[non_exhaustive]pub enum RouterVersion {
Heuristic,
Model(u16),
}Expand description
Which layer of the router answered, and at what version.
Recorded next to every decision so a run can be read back later. A model number is the version of the weights, not of the crate, because the two move independently.
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.
Trait Implementations§
Source§impl Clone for RouterVersion
impl Clone for RouterVersion
Source§fn clone(&self) -> RouterVersion
fn clone(&self) -> RouterVersion
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 RouterVersion
Source§impl Debug for RouterVersion
impl Debug for RouterVersion
Source§impl Default for RouterVersion
impl Default for RouterVersion
Source§fn default() -> RouterVersion
fn default() -> RouterVersion
Returns the “default value” for a type. Read more
impl Eq for RouterVersion
Source§impl Hash for RouterVersion
impl Hash for RouterVersion
Source§impl PartialEq for RouterVersion
impl PartialEq for RouterVersion
impl StructuralPartialEq for RouterVersion
Auto Trait Implementations§
impl Forget for RouterVersion
impl Freeze for RouterVersion
impl Move for RouterVersion
impl RefUnwindSafe for RouterVersion
impl Send for RouterVersion
impl Sync for RouterVersion
impl Unpin for RouterVersion
impl UnsafeUnpin for RouterVersion
impl UnwindSafe for RouterVersion
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