pub enum ModeResponse {
NoOp,
PersistState(Vec<u8>),
Resolve(Vec<u8>),
PersistAndResolve {
state: Vec<u8>,
resolution: Vec<u8>,
},
}Expand description
The result of a Mode processing a message. The runtime applies this response to mutate session state.
Variants§
NoOp
No state change needed.
PersistState(Vec<u8>)
Persist updated mode state.
Resolve(Vec<u8>)
Resolve the session with the given resolution data.
PersistAndResolve
Persist mode state and resolve in one step.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModeResponse
impl RefUnwindSafe for ModeResponse
impl Send for ModeResponse
impl Sync for ModeResponse
impl Unpin for ModeResponse
impl UnsafeUnpin for ModeResponse
impl UnwindSafe for ModeResponse
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