Struct lrs::time::Time

A time offset.

Syntax

struct Time {
    seconds: i64,
    nanoseconds: i64,
}

Fields

NameDescription
seconds

The seconds part of the offset.

nanoseconds

The nanoseconds part of the offset.

Static methods

NameDescription
days

Creates a Time that represents a number of days.

hours

Creates a Time that represents a number of hours.

microseconds

Creates a Time that represents a number of microseconds.

milliseconds

Creates a Time that represents a number of milliseconds.

minutes

Creates a Time that represents a number of minutes.

nanoseconds

Creates a Time that represents a number of nanoseconds.

seconds

Creates a Time that represents a number of seconds.

Methods

ReceiverNameDescription
selfnormalize

Normalizes the time.

Trait implementations

NameDescription
Add

Objects that implement the binary + operator.

Clone

Objects that can be duplicated.

Copy

Objects that can safely be copied via memcpy.

Debug

Objects that can be formatted in a "debug" form.

Eq

Objects that implement the binary == and != operators.

MaybeClone

Objects that can be duplicated.

Ord

Objects that are part of a total order.

PartialOrd

Objects that implement the binary <, <=, >, and >= operators.

Pod

Objects that are safe to use if they contain a random bit pattern.

Sub

Objects that implement the binary - operator.

Remarks

This can have various meanings such as the duration of a timeout parameter or the offset from the epoch when a file was created.