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
Source§fn clone(&self) -> SessionType
fn clone(&self) -> SessionType
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 SessionType
Source§impl Debug for SessionType
impl Debug for SessionType
Source§impl Default for SessionType
impl Default for SessionType
Source§fn default() -> SessionType
fn default() -> SessionType
Returns the “default value” for a type. Read more
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more