pub struct Letter {
pub id: String,
pub from: String,
pub to: Address,
pub body: String,
pub wake: bool,
pub reply_to: Option<String>,
pub hops: u8,
pub meta: Option<Value>,
}Expand description
A message on its way out. Ways of working together (requests and replies, rooms, task
boards…) are built on letters: reply_to links them, meta carries the app’s own structure,
and the network never reads either.
Fields§
§id: StringMade here, so the sender knows it before the letter goes (a reply names it in reply_to).
from: StringThe sending agent: one of this computer’s.
to: Address§body: String§wake: boolfalse makes it a notice: it waits for the agent’s next turn instead of starting one.
reply_to: Option<String>§hops: u8Handoffs so far in this chain; 0 when a person started it.
meta: Option<Value>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Letter
impl Freeze for Letter
impl Move for Letter
impl RefUnwindSafe for Letter
impl Send for Letter
impl Sync for Letter
impl Unpin for Letter
impl UnsafeUnpin for Letter
impl UnwindSafe for Letter
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