pub struct SweepOptions {
pub modified_within: Option<Duration>,
}Expand description
Bounds on what a sweep will report.
Fields§
§modified_within: Option<Duration>Only report sessions whose newest transcript file was modified within this
window. None reports everything under the root.
A cost control, not a correctness one: the endpoint dedups, so a wider
window is always safe. Clients with a long-lived transcript tree will want
one — a year of sessions is a lot of pointless deduped responses at
every restart.
Implementations§
Source§impl SweepOptions
impl SweepOptions
Sourcepub fn modified_within(window: Duration) -> Self
pub fn modified_within(window: Duration) -> Self
Report only sessions touched within window.
Trait Implementations§
Source§impl Clone for SweepOptions
impl Clone for SweepOptions
Source§fn clone(&self) -> SweepOptions
fn clone(&self) -> SweepOptions
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 SweepOptions
Source§impl Debug for SweepOptions
impl Debug for SweepOptions
Source§impl Default for SweepOptions
impl Default for SweepOptions
Source§fn default() -> SweepOptions
fn default() -> SweepOptions
Returns the “default value” for a type. Read more
impl Eq for SweepOptions
Source§impl PartialEq for SweepOptions
impl PartialEq for SweepOptions
impl StructuralPartialEq for SweepOptions
Auto Trait Implementations§
impl Freeze for SweepOptions
impl RefUnwindSafe for SweepOptions
impl Send for SweepOptions
impl Sync for SweepOptions
impl Unpin for SweepOptions
impl UnsafeUnpin for SweepOptions
impl UnwindSafe for SweepOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.