pub struct EffectConfig {
pub strict: bool,
pub speculate: bool,
pub reads: Vec<String>,
pub writes: Vec<String>,
pub ordered: Vec<String>,
pub calls: Option<Calls>,
}Expand description
Function-wide settings from #[psync::graph(..)].
Fields§
§strict: boolUnclassified awaited calls are writes to an unknown resource.
speculate: boolWrites may run ahead of earlier exits everywhere in the function.
reads: Vec<String>Extra verbs (whole names or first words) that read, from effects(read(..)).
writes: Vec<String>Extra verbs that write, from effects(write(..)).
ordered: Vec<String>Extra verbs whose order is observable, from effects(ordered(..)).
calls: Option<Calls>calls = ..: how the function’s calls are taken, overriding strict.
Implementations§
Source§impl Config
impl Config
Sourcepub fn unclassified_writes(&self) -> bool
pub fn unclassified_writes(&self) -> bool
Unclassified awaited calls are writes to an unknown resource.
Sourcepub fn independent(&self) -> bool
pub fn independent(&self) -> bool
Every statement is #[psync::independent].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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