Enum rinfluxdb_types::Duration[][src]

pub enum Duration {
    Nanoseconds(i64),
    Microseconds(i64),
    Milliseconds(i64),
    Seconds(i64),
    Minutes(i64),
    Hours(i64),
    Days(i64),
    Infinity,
}
Expand description

A duration

Note: this type is almost entirely equivalent to chrono::Duration, but it also supports infinite duration in addition.

Since chrono::Duration implements Into<Duration>, the former can be used everywhere the latter is expected.

Variants

Nanoseconds(i64)

Tuple Fields

0: i64

A duration expressed in nanoseconds

Microseconds(i64)

Tuple Fields

0: i64

A duration expressed in microseconds

Milliseconds(i64)

Tuple Fields

0: i64

A duration expressed in milliseconds

Seconds(i64)

Tuple Fields

0: i64

A duration expressed in seconds

Minutes(i64)

Tuple Fields

0: i64

A duration expressed in minutes

Hours(i64)

Tuple Fields

0: i64

A duration expressed in hours

Days(i64)

Tuple Fields

0: i64

A duration expressed in days

Infinity

An infinite duration

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more