pub enum SessionType {
AccountDeltaReplay,
Counterfactual,
ScheduledActions,
InteractiveReplay,
PureReplay,
Unknown,
}Expand description
How a session is being used, derived from its creation params.
The underlying flags are not mutually exclusive in a request, so variants are ordered most-restrictive first and matched in that order.
Variants§
AccountDeltaReplay
Nothing executes; state is reconstructed from a delta bundle.
Counterfactual
Reroutes order flow.
ScheduledActions
Runs scheduled actions.
InteractiveReplay
Asked to be told when to pause, so the client can drive it by hand.
PureReplay
Replays history with nothing added.
Unknown
A route row written before the classification was persisted.
Implementations§
Source§impl SessionType
impl SessionType
Sourcepub fn from_params(params: &CreateSessionParams) -> Self
pub fn from_params(params: &CreateSessionParams) -> Self
Classifies a session by its creation params.
Sourcepub const fn as_metric_value(self) -> &'static str
pub const fn as_metric_value(self) -> &'static str
Dashboard-visible: these values MUST stay byte-identical once shipped.
Sourcepub fn from_metric_value(value: &str) -> Option<Self>
pub fn from_metric_value(value: &str) -> Option<Self>
Parses what Self::as_metric_value returns; None for any other string.
Trait Implementations§
Source§impl Clone for SessionType
impl Clone for SessionType
impl Copy for SessionType
Source§impl Debug for SessionType
impl Debug for SessionType
Source§impl Default for SessionType
impl Default for SessionType
impl Eq for SessionType
Source§impl PartialEq for SessionType
impl PartialEq for SessionType
impl StructuralPartialEq for SessionType
Auto Trait Implementations§
impl Forget for SessionType
impl Freeze for SessionType
impl Move for SessionType
impl RefUnwindSafe for SessionType
impl Send for SessionType
impl Sync for SessionType
impl Unpin for SessionType
impl UnsafeUnpin for SessionType
impl UnwindSafe for SessionType
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