timestamp

Function timestamp 

Source
pub fn timestamp<'b, 'a: 'b, E: Envelope<'a>>(
    envelopes: &'b mut [E],
) -> impl Sort<()>
Expand description

Sorts Envelopes by server-side Timestamp in ascending order

  • for d14n this will sort envelopes by originator_ns
  • for v3 this will sort by created_ns on GroupMessage, WelcomeMessage, or WelcomePointer overall, sorts according to the timestamp extracted by TimestampExtractor

If a timestamp does not have a cursor (extractor return Option::None) it is sorted according to Ord, impl This sort will never return any missing envelopes.