pub(super) struct EchoTrust<'a> {
pub delivery_tier: &'a str,
pub sig_verified: Option<bool>,
pub reagent_verified: Option<bool>,
pub lan_verified: Option<bool>,
pub channel_verified: Option<bool>,
}Expand description
Echo a successfully-sent jekt into the SENDER’s own pane (SPEC_JEKT_SECURITY_AND_VISIBILITY §3.2).
Appends a {"type":"user",...} NDJSON line carrying the same
[JEKT:...] marker block the receiver got (re-wrapped with identical
fields) to the sender’s output blockfile — live MPS append (renders
immediately in an open agent view), persisted history
(parseHistoryLines rebuilds on reopen), and global transcript mirror.
The frontend’s tryParseJekt sees FROM == this pane’s agent and renders
it as an outgoing JektBubble (stream-parser.ts direction detection —
this is the producer that comment says doesn’t exist yet).
No-op when the sender isn’t a registered agent on this instance (cron, external callers) or is messaging itself (the incoming marker already lands in the same pane).
reagent_verified/lan_verified should be the SAME values the original
delivery’s Handler::inject_message_inner computed effective_tier/
requires_stop from (not re-derived) — see the call site’s own doc
comment inline below for why passing anything else produces a
self-contradictory echoed marker (reagentx P1 on PR #2623).
The delivery-tier + verification signals an echoed marker must carry.
Grouped into a named struct rather than left as positionals because
sig_verified, reagent_verified and lan_verified are three consecutive
Option<bool>s: any two of them can be transposed at a call site and the
compiler cannot say a word. The failure mode is a silently mislabelled TRUST
field on a security marker, which is not the kind of bug to leave to
argument order.
Fields§
§delivery_tier: &'a str§sig_verified: Option<bool>§reagent_verified: Option<bool>§lan_verified: Option<bool>§channel_verified: Option<bool>Trait Implementations§
impl<'a> Copy for EchoTrust<'a>
impl<'a> Eq for EchoTrust<'a>
impl<'a> StructuralPartialEq for EchoTrust<'a>
Auto Trait Implementations§
impl<'a> Freeze for EchoTrust<'a>
impl<'a> RefUnwindSafe for EchoTrust<'a>
impl<'a> Send for EchoTrust<'a>
impl<'a> Sync for EchoTrust<'a>
impl<'a> Unpin for EchoTrust<'a>
impl<'a> UnsafeUnpin for EchoTrust<'a>
impl<'a> UnwindSafe for EchoTrust<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§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>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§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.§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.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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