pub(crate) struct Effect {
pub domain: Domain,
pub kind: Kind,
pub target: Target,
pub op: String,
pub ordered: bool,
pub source: Option<String>,
}Expand description
One operation on the outside world.
Fields§
§domain: Domain§kind: Kind§target: Target§op: StringThe call, for reports (fs::write, delete).
ordered: boolThe order of these operations is observable even on different targets (send, append,
publish): two of them on one domain never reorder.
source: Option<String>The target’s expression as written in the call (a file path), when there is one: the runtime check of a loop’s targets evaluates it for each item.
Implementations§
Source§impl Effect
impl Effect
pub fn writes(&self) -> bool
Sourcepub fn place(&self) -> Vec<String>
pub fn place(&self) -> Vec<String>
The place this effect touches, for certificates: w/<domain>/<target..>. Places overlap
by prefix, so where conflict is finer than a prefix (string-prefix and computed targets,
services named by type, ordered writes that conflict on any target), the place is cut
short, which only adds conflicts.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl UnwindSafe for Effect
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