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_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 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
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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