pub enum LatestEventValue {
None,
Remote {
timestamp: MilliSecondsSinceUnixEpoch,
sender: OwnedUserId,
is_own: bool,
profile: TimelineDetails<Profile>,
content: TimelineItemContent,
},
RemoteInvite {
timestamp: MilliSecondsSinceUnixEpoch,
inviter: Option<OwnedUserId>,
inviter_profile: TimelineDetails<Profile>,
},
Local {
timestamp: MilliSecondsSinceUnixEpoch,
sender: OwnedUserId,
profile: TimelineDetails<Profile>,
content: TimelineItemContent,
state: LatestEventValueLocalState,
},
}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.
RemoteInvite
The latest event represents an invite to a room.
Fields
timestamp: MilliSecondsSinceUnixEpochThe timestamp of the invite.
inviter: Option<OwnedUserId>The inviter (can be unknown).
inviter_profile: TimelineDetails<Profile>The inviter’s profile (can be unknown).
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.
sender: OwnedUserIdThe sender of the remote event.
profile: TimelineDetails<Profile>The sender’s profile.
content: TimelineItemContentThe content of the local event.
state: LatestEventValueLocalStateWhether the local event is sending, has been sent or cannot be sent.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LatestEventValue
impl !UnwindSafe for LatestEventValue
impl Freeze for LatestEventValue
impl Send for LatestEventValue
impl Sync for LatestEventValue
impl Unpin for LatestEventValue
impl UnsafeUnpin for LatestEventValue
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
impl<T> AsyncTraitDeps for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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