pub struct RouterState {
pub accumulated_cost: f64,
pub decision_history: Vec<RoutingDecision>,
}Expand description
Session-scoped router state (for persistence across restarts).
Fields§
§accumulated_cost: f64Accumulated session cost in dollars.
decision_history: Vec<RoutingDecision>Decision history for this session.
Trait Implementations§
Source§impl Clone for RouterState
impl Clone for RouterState
Source§fn clone(&self) -> RouterState
fn clone(&self) -> RouterState
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 RouterState
impl Debug for RouterState
Source§impl Default for RouterState
impl Default for RouterState
Source§fn default() -> RouterState
fn default() -> RouterState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RouterState
impl<'de> Deserialize<'de> for RouterState
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
Auto Trait Implementations§
impl Freeze for RouterState
impl RefUnwindSafe for RouterState
impl Send for RouterState
impl Sync for RouterState
impl Unpin for RouterState
impl UnsafeUnpin for RouterState
impl UnwindSafe for RouterState
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