pub enum Process {
Skip,
Div,
Prefix(Event, Box<Process>),
Seq(Vec<Process>),
Choice {
branches: Vec<Process>,
default: Option<Box<Process>>,
},
Guard(Expr, Box<Process>),
ProcessRef {
name: String,
params: Vec<String>,
span: Range<usize>,
},
Decl(VarDecl),
}Expand description
A process expression.
Variants§
Skip
Successful termination.
Div
Divergence (Ω): infinite-loop terminal.
Prefix(Event, Box<Process>)
evnt -> ρ — event prefix.
Seq(Vec<Process>)
ρ₁ ; ρ₂ ; ... ; ρₙ — sequential composition.
Choice
ρ₁ [] ρ₂ [] ... ρₙ — external choice, with an optional
default arm taken when no branch’s guard succeeds.
Fields
Guard(Expr, Box<Process>)
[guard] ρ — guarded process.
ProcessRef
Name(args)? — reference to another process, by name.
Fields
Decl(VarDecl)
A local variable declaration inside a process body: ident ':' Type ';'.
Assignments and external calls are not permitted in process bodies —
side effects belong exclusively in evt declarations.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Process
impl RefUnwindSafe for Process
impl Send for Process
impl Sync for Process
impl Unpin for Process
impl UnsafeUnpin for Process
impl UnwindSafe for Process
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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,
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.