pub struct TransitionLoader {
pub pool_db_path: PathBuf,
}Expand description
In-process PCard-to-Fiber Transition Loader.
Fields§
§pool_db_path: PathBufImplementations§
Source§impl TransitionLoader
impl TransitionLoader
pub fn new(pool_db_path: impl Into<PathBuf>) -> Self
pub fn default_pool() -> Self
Sourcepub fn resolve_pcard(&self, function_id: &str) -> Result<PcardData, String>
pub fn resolve_pcard(&self, function_id: &str) -> Result<PcardData, String>
Resolves tripartite PCard by handle from SQLite CAS database.
Sourcepub fn invoke_create_record(
&self,
content: &[u8],
algorithm: Option<&str>,
) -> Result<MCardRecord, String>
pub fn invoke_create_record( &self, content: &[u8], algorithm: Option<&str>, ) -> Result<MCardRecord, String>
Invokes create_record directly in-process.
Sourcepub fn validate_bipartite(net: &PetriNet) -> Result<(), String>
pub fn validate_bipartite(net: &PetriNet) -> Result<(), String>
Validates that the PetriNet strictly satisfies bipartite invariants.
Sourcepub fn fire_transition(
&self,
net: &PetriNet,
marking: &mut Marking,
transition_id: &str,
input_payload: &[u8],
planted_error: bool,
) -> Result<TransitionExecutionOutcome, String>
pub fn fire_transition( &self, net: &PetriNet, marking: &mut Marking, transition_id: &str, input_payload: &[u8], planted_error: bool, ) -> Result<TransitionExecutionOutcome, String>
Fires a transition in-process within a Cordis Fiber lifecycle.
Auto Trait Implementations§
impl Forget for TransitionLoader
impl Freeze for TransitionLoader
impl RefUnwindSafe for TransitionLoader
impl Send for TransitionLoader
impl Sync for TransitionLoader
impl Unpin for TransitionLoader
impl UnsafeUnpin for TransitionLoader
impl UnwindSafe for TransitionLoader
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