pub enum PossibleLatestEvent<'a> {
YesRoomMessage(&'a SyncRoomMessageEvent),
YesPoll(&'a SyncUnstablePollStartEvent),
NoUnsupportedEventType,
NoUnsupportedMessageLikeType,
NoEncrypted,
}
Available on crate features
experimental-sliding-sync
and e2e-encryption
only.Expand description
Represents a decision about whether an event could be stored as the latest event in a room. Variants starting with Yes indicate that this message could be stored, and provide the inner event information, and those starting with a No indicate that it could not, and give a reason.
Variants§
YesRoomMessage(&'a SyncRoomMessageEvent)
This message is suitable - it is an m.room.message
YesPoll(&'a SyncUnstablePollStartEvent)
This message is suitable - it is a poll
NoUnsupportedEventType
Not suitable - it’s a state event
NoUnsupportedMessageLikeType
Not suitable - it’s not an m.room.message
NoEncrypted
Not suitable - it’s encrypted
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PossibleLatestEvent<'a>
impl<'a> Send for PossibleLatestEvent<'a>
impl<'a> Sync for PossibleLatestEvent<'a>
impl<'a> Unpin for PossibleLatestEvent<'a>
impl<'a> UnwindSafe for PossibleLatestEvent<'a>
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