pub enum RegardingRef {
Handle(MessageHandle),
Wire {
message_id: u8,
direction: Direction,
sender_hint: Option<NodeHint>,
epoch: Option<u16>,
},
}Expand description
What a reply or emote is about.
Unlike ComposeRef, which only ever names the local stream, a regarding
target is usually a message someone else sent, and usually one this
process did not witness arrive: reacting to a message read yesterday is
the ordinary case, not the exotic one. The wire form therefore carries the
direction and — for channel groups, where the ID alone is meaningless —
the target sender’s hint.
Variants§
Handle(MessageHandle)
A message this engine instance inserted or composed.
Wire
A persisted message addressed by the coordinates recorded with it.
epoch is checked against the stream when one is live, so a reference
that predates a Sequence Reset is refused rather than mis-targeted.
For an inbound target with no live stream the reference is sent
best-effort: retention is the receiver’s business, and the receiving
platform matches unresolved references against its own stored rows.
Trait Implementations§
Source§impl Clone for RegardingRef
impl Clone for RegardingRef
Source§fn clone(&self) -> RegardingRef
fn clone(&self) -> RegardingRef
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RegardingRef
impl Debug for RegardingRef
Source§impl PartialEq for RegardingRef
impl PartialEq for RegardingRef
impl Copy for RegardingRef
impl Eq for RegardingRef
impl StructuralPartialEq for RegardingRef
Auto Trait Implementations§
impl Freeze for RegardingRef
impl RefUnwindSafe for RegardingRef
impl Send for RegardingRef
impl Sync for RegardingRef
impl Unpin for RegardingRef
impl UnwindSafe for RegardingRef
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)