Skip to main content

Crate ops_rs

Crate ops_rs 

Source

Re-exports§

pub use batch::BatchOp;
pub use contexts::DryContext;
pub use contexts::WetContext;
pub use error::OpError;
pub use failure::AttributionClass;
pub use loop_op::LoopOp;
pub use macros::AggregationStrategy;
pub use op::Op;
pub use op_metadata::OpMetadata;
pub use op_metadata::TriggerFuse;
pub use op_metadata::ValidationReport;
pub use ops::get_caller_trigger_name;
pub use ops::perform;
pub use ops::wrap_nested_op_exception;
pub use structured_queries::generate_outline_schema;
pub use structured_queries::FlatOutlineEntry;
pub use structured_queries::ListingOutline;
pub use structured_queries::OutlineEntry;
pub use structured_queries::OutlineMetadata;
pub use wrappers::logging::LoggingWrapper;
pub use wrappers::timeout::TimeBoundWrapper;
pub use wrappers::validating::ValidatingWrapper;
pub use trigger::*;

Modules§

batch
batch_metadata
contexts
error
failure
The failure taxonomy — WHOSE problem a failure is.
loop_op
macros
op
op_metadata
ops
prelude
structured_queries
trigger
wrappers

Macros§

abort
Abort macro that sets the abort flag in DryContext
batch
Create a named batch op type with flexible return types and aggregation Usage:
break_loop
Break loop macro that sets the break flag in DryContext
break_loop_scoped
Break a specific loop by targeting its loop ID
check_abort
Utility macro to check if operation should be aborted
continue_loop
Continue loop macro that sets the continue flag in DryContext
dry_get
Retrieve a value from dry context using variable name as key let var: Type = dry_get!(dry_context, var_name);
dry_get_key
Retrieve a value from dry context using a custom key name let var: Option = dry_get_key!(dry_context, “custom_key”);
dry_put
Store a variable in dry context using its name as the key dry_put!(dry_context, variable_name)
dry_put_key
Store a value in dry context using a custom key name dry_put_key!(dry_context, “custom_key”, value)
dry_require
Retrieve a required value from dry context, return error if missing let var: Type = dry_require!(dry_context, var_name)?;
dry_require_key
Retrieve a required value from dry context using a custom key name let var: Type = dry_require_key!(dry_context, “custom_key”)?;
dry_result
Store result in dry context under both the op name and “result” key dry_result!(dry_context, “OpName”, result_value);
op_wrapper
Create a wrapper that converts any Op to Op using a conversion strategy For advanced composability between different op types Usage is typically not needed with the new flexible batch!/repeat!/repeat_until! macros
repeat
Create a named for-loop op type with flexible return types The limit is loaded from a variable in the dry context Usage:
repeat_until
Create a named while-loop op type with condition-based iteration The condition is checked from a boolean variable in the dry context Internal control flags use unique UUIDs to prevent conflicts in nested loops Usage:
void_op
Macro to create a void wrapper type that discards the result
wet_get_ref
Get a reference from wet context let var: Option<Arc> = wet_get_ref!(wet_context, var_name);
wet_get_ref_key
Get a reference from wet context using a custom key name let var: Option<Arc> = wet_get_ref_key!(wet_context, “custom_key”);
wet_put_arc
Store an Arc in wet context without additional wrapping wet_put_arc!(wet_context, var_name, arc_value);
wet_put_arc_key
Store an Arc in wet context using a custom key name wet_put_arc_key!(wet_context, “custom_key”, arc_value);
wet_put_ref
Store a reference in wet context without serialization wet_put_ref!(wet_context, var_name, value);
wet_put_ref_key
Store a reference in wet context using a custom key name wet_put_ref_key!(wet_context, “custom_key”, value);
wet_require_ref
Require a reference from wet context with error handling let var: Arc = wet_require_ref!(wet_context, var_name)?;
wet_require_ref_key
Require a reference from wet context using a custom key name let var: Arc = wet_require_ref_key!(wet_context, “custom_key”)?;
wire_trigger
Macro to create a Trigger for any operation type

Type Aliases§

OpResult