pub struct EngineSemantics(/* private fields */);Expand description
A version of this crate’s engine semantics line: how a lowered plan executes.
Same shape and same guarantee as CompilerSemantics: engine behavior has
versions, and a definition digest is not one of them.
Implementations§
Source§impl EngineSemantics
impl EngineSemantics
Sourcepub const CURRENT: EngineSemantics
pub const CURRENT: EngineSemantics
The semantics this build executes.
Sourcepub fn version(
identity: &PlanIdentity,
version: u16,
) -> Result<EngineSemantics, PlanInputError>
pub fn version( identity: &PlanIdentity, version: u16, ) -> Result<EngineSemantics, PlanInputError>
Name a version of the engine semantics line identity binds.
Sourcepub fn generic_version(version: u16) -> Result<EngineSemantics, PlanInputError>
pub fn generic_version(version: u16) -> Result<EngineSemantics, PlanInputError>
version under Acativa’s own identity lines — the generic dialect.
pub const fn version_of(self) -> u16
Sourcepub fn wire(self, identity: &PlanIdentity) -> String
pub fn wire(self, identity: &PlanIdentity) -> String
The recorded form under identity’s lines:
acativa.workflow.engine.v1 for ACATIVA_PLAN_IDENTITY.
Sourcepub fn generic_wire(self) -> String
pub fn generic_wire(self) -> String
The recorded form under Acativa’s own identity lines.
pub fn from_wire( identity: &PlanIdentity, value: &str, ) -> Result<EngineSemantics, PlanInputError>
Sourcepub fn generic_from_wire(value: &str) -> Result<EngineSemantics, PlanInputError>
pub fn generic_from_wire(value: &str) -> Result<EngineSemantics, PlanInputError>
from_wire under Acativa’s own identity lines.
Trait Implementations§
Source§impl Clone for EngineSemantics
impl Clone for EngineSemantics
Source§fn clone(&self) -> EngineSemantics
fn clone(&self) -> EngineSemantics
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 moreimpl Copy for EngineSemantics
Source§impl Debug for EngineSemantics
impl Debug for EngineSemantics
Source§impl<'de> Deserialize<'de> for EngineSemantics
impl<'de> Deserialize<'de> for EngineSemantics
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EngineSemantics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EngineSemantics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EngineSemantics
Source§impl Hash for EngineSemantics
impl Hash for EngineSemantics
Source§impl Ord for EngineSemantics
impl Ord for EngineSemantics
Source§fn cmp(&self, other: &EngineSemantics) -> Ordering
fn cmp(&self, other: &EngineSemantics) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EngineSemantics
impl PartialEq for EngineSemantics
Source§impl PartialOrd for EngineSemantics
impl PartialOrd for EngineSemantics
Source§impl Serialize for EngineSemantics
impl Serialize for EngineSemantics
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
impl StructuralPartialEq for EngineSemantics
Source§impl TryFrom<u16> for EngineSemantics
impl TryFrom<u16> for EngineSemantics
Source§fn try_from(
version: u16,
) -> Result<EngineSemantics, <EngineSemantics as TryFrom<u16>>::Error>
fn try_from( version: u16, ) -> Result<EngineSemantics, <EngineSemantics as TryFrom<u16>>::Error>
Names a version of Acativa’s own engine line. A host binding other
lines calls EngineSemantics::version with its PlanIdentity.
Source§type Error = PlanInputError
type Error = PlanInputError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for EngineSemantics
impl Freeze for EngineSemantics
impl Move for EngineSemantics
impl RefUnwindSafe for EngineSemantics
impl Send for EngineSemantics
impl Sync for EngineSemantics
impl Unpin for EngineSemantics
impl UnsafeUnpin for EngineSemantics
impl UnwindSafe for EngineSemantics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.