pub enum Effect {
SendMessage {
recipient: Option<String>,
content: SExpr,
},
SendQuery {
recipient: Option<String>,
content: SExpr,
},
SendReply {
recipient: Option<String>,
content: SExpr,
},
SignalError {
content: SExpr,
},
Acknowledge,
CancelConversation,
AnnouncePresence,
AnnounceDeparture,
StoreBelief(SExpr),
RemoveBelief(SExpr),
InstallDialect(SExpr),
Custom(SExpr),
}Expand description
A concrete effect produced by message evaluation.
Variants§
SendMessage
Send a message to a recipient.
SendQuery
Send a query to a recipient.
SendReply
Send a reply.
SignalError
Signal an error.
Acknowledge
Acknowledge receipt.
CancelConversation
Cancel a conversation.
AnnouncePresence
Announce agent presence.
AnnounceDeparture
Announce agent departure.
StoreBelief(SExpr)
Store a belief (content of a tell message).
RemoveBelief(SExpr)
Remove a belief.
InstallDialect(SExpr)
Install a dialect from a meta message (carries the raw S-expression definition).
Custom(SExpr)
A custom effect from a dialect-defined performative.
Trait Implementations§
impl Eq for Effect
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl Forget for Effect
impl Freeze for Effect
impl Move for Effect
impl RefUnwindSafe for Effect
impl Send for Effectwhere
RawVecInner: Send,
impl Sync for Effectwhere
RawVecInner: Sync,
impl Unpin for Effect
impl UnsafeUnpin for Effectwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SExpr>: UnsafeUnpin,
impl UnwindSafe for Effectwhere
RawVecInner: UnwindSafe,
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