pub enum UnreadMark {
NoOp,
Clear,
Anchor(String),
}Expand description
What compute_unread_anchor decided a chat’s read marker should become to surface its newest
contact message as unread. Computed from the full DB history (RAM may hold only a preview
message for an unopened community).
Variants§
NoOp
Nothing to surface: no contact message, or a strictly-newer own message (we spoke last).
Clear
Reset to the never-read anchor: the target is the chat’s earliest message.
Anchor(String)
Retreat last_read to this event id (the newest message in a strictly earlier second).
Trait Implementations§
Source§impl Debug for UnreadMark
impl Debug for UnreadMark
Source§impl PartialEq for UnreadMark
impl PartialEq for UnreadMark
impl StructuralPartialEq for UnreadMark
Auto Trait Implementations§
impl Freeze for UnreadMark
impl RefUnwindSafe for UnreadMark
impl Send for UnreadMark
impl Sync for UnreadMark
impl Unpin for UnreadMark
impl UnsafeUnpin for UnreadMark
impl UnwindSafe for UnreadMark
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> 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