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
ScheduledActions
InteractiveReplay
Asked to be told when to pause, so the client can drive it by hand.
PureReplay
Unknown
A route row written before the classification was persisted.
Implementations§
Source§impl SessionType
impl SessionType
pub fn from_params(params: &CreateSessionParams) -> Self
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.
pub fn from_metric_value(value: &str) -> Option<Self>
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 Freeze 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