Struct mz_repr::Timestamp

source ·
pub struct Timestamp {
    internal: u64,
}
Expand description

System-wide timestamp type.

Fields§

§internal: u64

note no pub.

Implementations§

Advance a timestamp by the least amount possible such that ts.less_than(ts.step_forward()) is true. Panic if unable to do so.

Advance a timestamp forward by the given amount. Panic if unable to do so.

Retreat a timestamp by the least amount possible such that ts.step_back().unwrap().less_than(ts) is true. Return None if unable, which must only happen if the timestamp is Timestamp::minimum().

Trait Implementations§

The type of parameters that arbitrary_with accepts for configuration of the generated Strategy. Parameters must implement Default.
The type of Strategy used to generate values of type Self.
Generates a Strategy for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more
Generates a Strategy for producing arbitrary values of type the implementing type (Self). Read more
The SQL column type of this Rust type
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Name of the codec. Read more
Encode a timestamp or diff for permanent storage. Read more
Decode a timestamp or diff previous encoded with this codec’s Codec64::encode. Read more
The type of region capable of absorbing allocations owned by the Self type. Note: not allocations of Self, but of the things that it owns.
Whether this Rust type can represent NULL values
Try to convert a Result whose Ok variant is a Datum into this native Rust type (Self). If it fails the error variant will contain the original result.
Convert this Rust type into a Result containing a Datum, or an error
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
The smallest element greater than or equal to both arguments. Read more
The largest element less than or equal to both arguments. Read more
Updates self to the smallest element greater than or equal to both arguments. Read more
Updates self to the largest element less than or equal to both arguments. Read more
Advances self to the largest time indistinguishable under frontier. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Returns true iff one element is less than or equal to the other.
Returns true iff one element is strictly less than the other.
Advances a timestamp according to the timestamp actions on the path. Read more
Composes this path summary with another path summary. Read more
Converts the outer timestamp to an inner timestamp.
Converts the inner timestamp to an outer timestamp.
Summarizes an inner path summary as an outer path summary. Read more
The resulting type after applying the % operator.
Performs the % operation. Read more
Serialize this value into the given Serde serializer. Read more
A type summarizing action on a timestamp along a dataflow path.
A minimum value suitable as a default.
Advance a timestamp by the least amount possible such that ts.less_than(ts.step_forward()) is true. Panic if unable to do so.
Advance a timestamp forward by the given amount. Panic if unable to do so.
Retreat a timestamp by the least amount possible such that ts.step_back().unwrap().less_than(ts) is true. Return None if unable, which must only happen if the timestamp is Timestamp::minimum().
Return the maximum value for this timestamp.
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.
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.
The type returned in the event of a conversion error.
Performs the conversion.

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
Formats an object with the “alternative” format ({:#}) and returns it.
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Converts to this type from a reference to the input type.
Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
The type of the output value.
A well-distributed integer derived from the data.
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

Calls U::from(self).

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

Wrap the input message T in a tonic::Request
Upcasts this ProgressEventTimestamp to Any. Read more
Returns the name of the concrete type of this object. Read more
Converts the outer timestamp to an inner timestamp.
Converts the inner timestamp to an outer timestamp.
Summarizes an inner path summary as an outer path summary. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
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