pub struct ClientSessions { /* private fields */ }Expand description
The ledger file under one data directory.
Implementations§
Source§impl ClientSessions
impl ClientSessions
pub fn in_data_dir(dir: &Path) -> ClientSessions
Sourcepub fn record(
&self,
client: &str,
pid: u32,
started: u64,
mark: Mark,
) -> Result<(), String>
pub fn record( &self, client: &str, pid: u32, started: u64, mark: Mark, ) -> Result<(), String>
Records mark for the session (pid, started) of client. Every mark
creates the session when it is missing, so their order does not matter.
A session that ends sooner than MIN_SESSION_SECS without a call is
removed, so probes never push real sessions out. Clients without a
setup target are not recorded.
Sourcepub fn empty_streaks(&self) -> Vec<EmptyStreak>
pub fn empty_streaks(&self) -> Vec<EmptyStreak>
Clients whose last SESSIONS_PER_CLIENT sessions all ran at least
MIN_SESSION_SECS and ended without a call.
Trait Implementations§
Source§impl Clone for ClientSessions
impl Clone for ClientSessions
Source§fn clone(&self) -> ClientSessions
fn clone(&self) -> ClientSessions
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 Forget for ClientSessions
impl Freeze for ClientSessions
impl Move for ClientSessions
impl RefUnwindSafe for ClientSessions
impl Send for ClientSessions
impl Sync for ClientSessions
impl Unpin for ClientSessions
impl UnsafeUnpin for ClientSessions
impl UnwindSafe for ClientSessions
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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