Struct Origin
#[non_exhaustive]pub struct Origin {
pub process: String,
pub agent: Option<String>,
}Expand description
Who sent what crosses a process boundary: the far side of a link, as the receiving side knows it.
The receiving side sets it from the link it read the entry or the ask
on (the link’s own identity: a process, or an agent’s session), never
from what the sender wrote: a sender cannot claim another origin.
Every entry taken in carries one (JournalEntry::origin); every ask
answered is checked against one (the crossing contract’s Relay::answer).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.process: StringThe process on the far side of the link (node, plugin:geo).
agent: Option<String>The agent the link speaks for, when the link is an agent’s
session (the agent socket, an MCP client); None for a process.
Implementations§
Trait Implementations§
impl Eq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Origin
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