pub enum LatestEventValue {
None,
Remote {
timestamp: MilliSecondsSinceUnixEpoch,
sender: OwnedUserId,
is_own: bool,
profile: TimelineDetails<Profile>,
content: TimelineItemContent,
},
Local {
timestamp: MilliSecondsSinceUnixEpoch,
content: TimelineItemContent,
is_sending: bool,
},
}Expand description
A simplified version of matrix_sdk_base::latest_event::LatestEventValue
tailored for this timeline module.
Variants§
None
No value has been computed yet, or no candidate value was found.
Remote
The latest event represents a remote event.
Fields
§
timestamp: MilliSecondsSinceUnixEpochThe timestamp of the remote event.
§
sender: OwnedUserIdThe sender of the remote event.
§
profile: TimelineDetails<Profile>The sender’s profile.
§
content: TimelineItemContentThe content of the remote event.
Local
The latest event represents a local event that is sending, or that cannot be sent, either because a previous local event, or this local event cannot be sent.
Fields
§
timestamp: MilliSecondsSinceUnixEpochThe timestamp of the local event.
§
content: TimelineItemContentThe content of the local event.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LatestEventValue
impl !RefUnwindSafe for LatestEventValue
impl Send for LatestEventValue
impl Sync for LatestEventValue
impl Unpin for LatestEventValue
impl !UnwindSafe for LatestEventValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more