pub enum SendMode {
Enqueue,
Immediate,
Unknown,
}Expand description
How to deliver the message. enqueue (default) appends to the message queue. immediate interjects during an in-progress turn.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Variants§
Enqueue
Append the message to the normal session queue.
Immediate
Interject the message during the in-progress turn.
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SendMode
impl<'de> Deserialize<'de> for SendMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SendMode
impl StructuralPartialEq for SendMode
Auto Trait Implementations§
impl Freeze for SendMode
impl RefUnwindSafe for SendMode
impl Send for SendMode
impl Sync for SendMode
impl Unpin for SendMode
impl UnsafeUnpin for SendMode
impl UnwindSafe for SendMode
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