#[non_exhaustive]pub enum ProcKind<'a> {
External(ExternalProc<'a>),
Internal(InternalProc<'a>),
}Expand description
External vs. internal split mirroring upstream’s
TPSExternalProcRec / TPSInternalProcRec.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
External(ExternalProc<'a>)
Imported from the host application’s API. The compiled
script references the host by name; the host’s runtime
resolves and dispatches.
Internal(InternalProc<'a>)
Script-defined procedure — has bytecode at
(bytecode_offset, bytecode_len) inside the IFPS blob.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ProcKind<'a>
impl<'a> RefUnwindSafe for ProcKind<'a>
impl<'a> Send for ProcKind<'a>
impl<'a> Sync for ProcKind<'a>
impl<'a> Unpin for ProcKind<'a>
impl<'a> UnsafeUnpin for ProcKind<'a>
impl<'a> UnwindSafe for ProcKind<'a>
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