StatsJob

Struct StatsJob 

Source
pub struct StatsJob {
Show 14 fields pub id: Id, pub tube: String, pub state: State, pub pri: u32, pub age: Duration, pub delay: Duration, pub ttr: u32, pub time_left: Duration, pub file: u32, pub reserves: u32, pub timeouts: u32, pub releases: u32, pub buries: u32, pub kicks: u32,
}

Fields§

§id: Id

“id” is the job id

§tube: String

“tube” is the name of the tube that contains this job

§state: State

“state” is “ready” or “delayed” or “reserved” or “buried”

§pri: u32

“pri” is the priority value set by the put, release, or bury commands.

§age: Duration

“age” is the time in seconds since the put command that created this job.

§delay: Duration

“delay” is the integer number of seconds to wait before putting this job in the ready queue.

§ttr: u32

“ttr” – time to run – is the integer number of seconds a worker is allowed to run this job.

§time_left: Duration

“time-left” is the number of seconds left until the server puts this job into the ready queue. This number is only meaningful if the job is reserved or delayed. If the job is reserved and this amount of time elapses before its state changes, it is considered to have timed out.

§file: u32

“file” is the number of the earliest binlog file containing this job. If -b wasn’t used, this will be 0.

§reserves: u32

“reserves” is the number of times this job has been reserved.

§timeouts: u32

“timeouts” is the number of times this job has timed out during a reservation.

§releases: u32

“releases” is the number of times a client has released this job from a reservation.

§buries: u32

“buries” is the number of times this job has been buried.

§kicks: u32

“kicks” is the number of times this job has been kicked.

Trait Implementations§

Source§

impl Debug for StatsJob

Source§

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

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

impl<'de> Deserialize<'de> for StatsJob

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 StatsJob

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>,