pub enum SignalOutcome {
Received(Value),
TimedOut,
}Expand description
Outcome applied to a signal step by a StepInterceptor.
§Examples
use ironflow_engine::executor::SignalOutcome;
use serde_json::json;
let received = SignalOutcome::Received(json!({"status": "success"}));
assert_ne!(received, SignalOutcome::TimedOut);Variants§
Received(Value)
A signal arrived with this payload; it must match the expected type.
TimedOut
No signal arrived before the deadline: the handler receives None.
Trait Implementations§
Source§impl Clone for SignalOutcome
impl Clone for SignalOutcome
Source§impl Debug for SignalOutcome
impl Debug for SignalOutcome
Source§impl PartialEq for SignalOutcome
impl PartialEq for SignalOutcome
impl StructuralPartialEq for SignalOutcome
Auto Trait Implementations§
impl Freeze for SignalOutcome
impl RefUnwindSafe for SignalOutcome
impl Send for SignalOutcome
impl Sync for SignalOutcome
impl Unpin for SignalOutcome
impl UnsafeUnpin for SignalOutcome
impl UnwindSafe for SignalOutcome
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