pub struct ControlResult {
pub command: Option<String>,
pub event: Option<Box<EventView>>,
pub forwarded: Option<bool>,
}Fields§
§command: Option<String>Command is the verb that was recorded: pause, resume, stop or message.
event: Option<Box<EventView>>Event is the durable control event the command became. The intent is recorded whether or not it reached an engine, which is what makes a stream-consuming surface able to act on it.
forwarded: Option<bool>Forwarded is whether the command also reached the durable-execution engine. FALSE IS NOT A FAILURE: a session with no workflow link, or a deployment with no tasks backend, is record-only by design. A forward that was attempted and failed is a 502, never a false here.
Implementations§
Source§impl ControlResult
impl ControlResult
pub fn new() -> ControlResult
Trait Implementations§
Source§impl Clone for ControlResult
impl Clone for ControlResult
Source§fn clone(&self) -> ControlResult
fn clone(&self) -> ControlResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlResult
impl Debug for ControlResult
Source§impl Default for ControlResult
impl Default for ControlResult
Source§fn default() -> ControlResult
fn default() -> ControlResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ControlResult
impl<'de> Deserialize<'de> for ControlResult
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
Source§impl PartialEq for ControlResult
impl PartialEq for ControlResult
Source§impl Serialize for ControlResult
impl Serialize for ControlResult
impl StructuralPartialEq for ControlResult
Auto Trait Implementations§
impl Freeze for ControlResult
impl RefUnwindSafe for ControlResult
impl Send for ControlResult
impl Sync for ControlResult
impl Unpin for ControlResult
impl UnsafeUnpin for ControlResult
impl UnwindSafe for ControlResult
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