pub struct ActionOptions {
pub destination: Destination,
pub wait_for_target: bool,
pub timeout_ms: u64,
pub expect: Option<Expectation>,
pub observer: Option<Arc<dyn DispatchObserver>>,
}Expand description
One deadline includes queueing, preparation, dispatch and verification.
Fields§
§destination: DestinationScope of the completion expectation. Does not change the input target.
wait_for_target: boolWait for target actionability; false fails at once, without sending input, when the target is missing or not actionable.
timeout_ms: u64Total action deadline in milliseconds, including queueing, from 1 to 86400000 (24 hours).
expect: Option<Expectation>Completion condition; required for actions without an intrinsic result.
observer: Option<Arc<dyn DispatchObserver>>Optional durable intent hook, invoked before mutation.
Implementations§
Source§impl ActionOptions
impl ActionOptions
Sourcepub fn expecting(expect: Expectation) -> ActionOptions
pub fn expecting(expect: Expectation) -> ActionOptions
Create default options with an explicit completion condition.
Trait Implementations§
Source§impl Clone for ActionOptions
impl Clone for ActionOptions
Source§fn clone(&self) -> ActionOptions
fn clone(&self) -> ActionOptions
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 ActionOptions
impl Debug for ActionOptions
Source§impl Default for ActionOptions
impl Default for ActionOptions
Source§fn default() -> ActionOptions
fn default() -> ActionOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActionOptions
impl<'de> Deserialize<'de> for ActionOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActionOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActionOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ActionOptions
impl JsonSchema for ActionOptions
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for ActionOptions
impl Serialize for ActionOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ActionOptions
impl !UnwindSafe for ActionOptions
impl Forget for ActionOptions
impl Freeze for ActionOptionswhere
*const u8 is !null: Freeze,
PhantomData<Expectation>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<dyn DispatchObserver> is !null: Freeze,
PhantomData<ArcInner<dyn DispatchObserver>>: Freeze,
impl Move for ActionOptions
impl Send for ActionOptions
impl Sync for ActionOptions
impl Unpin for ActionOptions
impl UnsafeUnpin for ActionOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Expectation>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<dyn DispatchObserver> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn DispatchObserver>>: UnsafeUnpin,
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