pub struct EtagThreadResolver;Expand description
ParentResolver over raw e tags, independent of event kind.
Trait Implementations§
Source§impl Clone for EtagThreadResolver
impl Clone for EtagThreadResolver
Source§fn clone(&self) -> EtagThreadResolver
fn clone(&self) -> EtagThreadResolver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EtagThreadResolver
Source§impl Debug for EtagThreadResolver
impl Debug for EtagThreadResolver
Source§impl Default for EtagThreadResolver
impl Default for EtagThreadResolver
Source§fn default() -> EtagThreadResolver
fn default() -> EtagThreadResolver
Returns the “default value” for a type. Read more
Source§impl ParentResolver for EtagThreadResolver
impl ParentResolver for EtagThreadResolver
Source§fn parent(&self, event: &KernelEvent) -> Option<ThreadPointer>
fn parent(&self, event: &KernelEvent) -> Option<ThreadPointer>
Direct parent — the thing this event replies to.
None for top-level
events that aren’t part of a thread.Source§fn root(&self, event: &KernelEvent) -> Option<ThreadPointer>
fn root(&self, event: &KernelEvent) -> Option<ThreadPointer>
Thread root — the original anchor (article, note, URI). For top-level
replies this may equal
parent. None when the event is itself a
root or when no root marker is decodable.Pubkey of the parent’s author, when recoverable from the event’s
p
tags. Optional — used by UI for “X replied to Y” stitching; the
grouper itself does not consult this.Source§fn supersedes(&self, _event: &KernelEvent) -> Option<EventId>
fn supersedes(&self, _event: &KernelEvent) -> Option<EventId>
Event id this event supersedes in the block layout, if any. Read more
Auto Trait Implementations§
impl Freeze for EtagThreadResolver
impl RefUnwindSafe for EtagThreadResolver
impl Send for EtagThreadResolver
impl Sync for EtagThreadResolver
impl Unpin for EtagThreadResolver
impl UnsafeUnpin for EtagThreadResolver
impl UnwindSafe for EtagThreadResolver
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