pub struct ReplayOptions {
pub since_ms: Option<i64>,
pub until_ms: i64,
pub step: ReplayStep,
pub namespaces: Vec<String>,
}Expand description
What to replay over.
Fields§
§since_ms: Option<i64>The window’s start (inclusive). None = from the first recorded pass
(per-pass) — a stride needs one.
until_ms: i64The window’s end — the caller’s now.
step: ReplayStep§namespaces: Vec<String>The global namespace filter a live run would use (empty = all).
Implementations§
Source§impl ReplayOptions
impl ReplayOptions
Sourcepub fn from_args(
window: Option<&str>,
since_ms: Option<i64>,
step: Option<&str>,
namespaces: Vec<String>,
now_ms: i64,
) -> Result<Self>
pub fn from_args( window: Option<&str>, since_ms: Option<i64>, step: Option<&str>, namespaces: Vec<String>, now_ms: i64, ) -> Result<Self>
The one argument parser every surface shares: a window like 90d
(back from now) or an explicit since_ms, and a step of
per-pass (default) or a duration. A window and a since together are
refused rather than silently ranked.
Trait Implementations§
Source§impl Clone for ReplayOptions
impl Clone for ReplayOptions
Source§fn clone(&self) -> ReplayOptions
fn clone(&self) -> ReplayOptions
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 moreAuto Trait Implementations§
impl Freeze for ReplayOptions
impl RefUnwindSafe for ReplayOptions
impl Send for ReplayOptions
impl Sync for ReplayOptions
impl Unpin for ReplayOptions
impl UnsafeUnpin for ReplayOptions
impl UnwindSafe for ReplayOptions
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