StatsTube

Struct StatsTube 

Source
pub struct StatsTube {
Show 14 fields pub name: String, pub current_jobs_urgent: u32, pub current_jobs_ready: u32, pub current_jobs_reserved: u32, pub current_jobs_delayed: u32, pub current_jobs_buried: u32, pub total_jobs: u32, pub current_using: u32, pub current_waiting: u32, pub current_watching: u32, pub pause: u32, pub cmd_delete: u32, pub cmd_pause_tube: u32, pub pause_time_left: Duration,
}

Fields§

§name: String

“name” is the tube’s name.

§current_jobs_urgent: u32

“current-jobs-urgent” is the number of ready jobs with priority < 1024 in this tube.

§current_jobs_ready: u32

“current-jobs-ready” is the number of jobs in the ready queue in this tube.

§current_jobs_reserved: u32

“current-jobs-reserved” is the number of jobs reserved by all clients in this tube.

§current_jobs_delayed: u32

“current-jobs-delayed” is the number of delayed jobs in this tube.

§current_jobs_buried: u32

“current-jobs-buried” is the number of buried jobs in this tube.

§total_jobs: u32

“total-jobs” is the cumulative count of jobs created in this tube in the current beanstalkd process.

§current_using: u32

“current-using” is the number of open connections that are currently using this tube.

§current_waiting: u32

“current-waiting” is the number of open connections that have issued a reserve command while watching this tube but not yet received a response.

§current_watching: u32

“current-watching” is the number of open connections that are currently watching this tube.

§pause: u32

“pause” is the number of seconds the tube has been paused for.

§cmd_delete: u32

“cmd-delete” is the cumulative number of delete commands for this tube

§cmd_pause_tube: u32

“cmd-pause-tube” is the cumulative number of pause-tube commands for this tube.

§pause_time_left: Duration

“pause-time-left” is the number of seconds until the tube is un-paused.

Trait Implementations§

Source§

impl Debug for StatsTube

Source§

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

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

impl<'de> Deserialize<'de> for StatsTube

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for StatsTube

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,