Enum memento::Stat

source ·
pub enum Stat {
Show 20 variants Pid(u32), Uptime(u32), Time(u32), Version(String), PointerSize(usize), RUsageUser((u32, u32)), RUsageSystem((u32, u32)), MaxConnections(u32), CurrConnections(u32), TotalConnections(u32), RejectedConnections(u64), ConnectionStructures(u32), Bytes(u64), TotalItems(u64), CurrItems(u64), CmdGet(u64), CmdSet(u64), IncrHits(u64), DecrHits(u64), Other { name: String, value: String, },
}

Variants§

§

Pid(u32)

Process id of this server process.

§

Uptime(u32)

Number of secs since the server started.

§

Time(u32)

Current UNIX time according to the server.

§

Version(String)

Version string of this server.

§

PointerSize(usize)

Default size of pointers on the host OS (generally 32 or 64).

§

RUsageUser((u32, u32))

Accumulated user time for this process (seconds:microseconds).

§

RUsageSystem((u32, u32))

Accumulated system time for this process (seconds:microseconds).

§

MaxConnections(u32)

Max number of simultaneous connections.

§

CurrConnections(u32)

Number of open connections.

§

TotalConnections(u32)

Total number of connections opened since the server started running.

§

RejectedConnections(u64)

Conns rejected in maxconns_fast mode.

§

ConnectionStructures(u32)

Number of connection structures allocated by the server.

§

Bytes(u64)

Current number of bytes used to store items.

§

TotalItems(u64)

Total number of items stored since the server started.

§

CurrItems(u64)

Current number of items stored.

§

CmdGet(u64)

Cumulative number of retrieval reqs.

§

CmdSet(u64)

Cumulative number of storage reqs.

§

IncrHits(u64)

Number of successful incr reqs.

§

DecrHits(u64)

Number of successful decr reqs.

§

Other

Fields

§name: String
§value: String

Orphan stat.

Trait Implementations§

source§

impl Clone for Stat

source§

fn clone(&self) -> Stat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Stat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromStr for Stat

§

type Err = MementoError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Stat

§

impl Send for Stat

§

impl Sync for Stat

§

impl Unpin for Stat

§

impl UnwindSafe for Stat

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.