#[non_exhaustive]pub enum OpCapability {
Pure,
ReadsDeterministicInput,
ReadsSlotState,
EmitsDeterministicEffect,
WritesSlotEffect,
ReadsExternalMutableState,
NondeterministicEffect,
}Expand description
A Rust callback’s declared access to application state and effects.
Rustia checks the declaration against the selected profile. Captured state remains the application’s responsibility.
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.
Pure
ReadsDeterministicInput
ReadsSlotState
EmitsDeterministicEffect
WritesSlotEffect
ReadsExternalMutableState
NondeterministicEffect
Implementations§
Source§impl OpCapability
impl OpCapability
Sourcepub const fn identity_tag(self) -> u32
pub const fn identity_tag(self) -> u32
Stable tag for replay or package identities; independent of enum layout.
Trait Implementations§
Source§impl Clone for OpCapability
impl Clone for OpCapability
Source§fn clone(&self) -> OpCapability
fn clone(&self) -> OpCapability
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpCapability
impl Debug for OpCapability
Source§impl PartialEq for OpCapability
impl PartialEq for OpCapability
impl Copy for OpCapability
impl Eq for OpCapability
impl StructuralPartialEq for OpCapability
Auto Trait Implementations§
impl Freeze for OpCapability
impl RefUnwindSafe for OpCapability
impl Send for OpCapability
impl Sync for OpCapability
impl Unpin for OpCapability
impl UnsafeUnpin for OpCapability
impl UnwindSafe for OpCapability
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