pub enum Effect {
Stop {
scope: Id,
keep_listeners: bool,
},
Open {
resource: Id,
},
Close {
resource: Id,
},
Restore {
previous: Id,
resource: Id,
},
Prepare {
scope: Id,
previous: Option<Id>,
},
Validate {
scope: Id,
value: Id,
},
Initialize {
scope: Id,
},
Migrate {
scope: Id,
value: Option<Id>,
version: Version,
},
Adopt {
replacements: Vec<Replacement>,
},
Start {
scope: Id,
},
Drop {
scope: Id,
},
}Expand description
These are execution requests, not policy hooks. Every platform runs the same program.
Variants§
Stop
Open
Close
Restore
Prepare
Validate
Initialize
Migrate
Adopt
Fields
§
replacements: Vec<Replacement>Start
Drop
Trait Implementations§
impl Eq for Effect
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl Forget for Effect
impl Freeze for Effect
impl Move for Effect
impl RefUnwindSafe for Effect
impl Send for Effectwhere
RawVecInner: Send,
impl Sync for Effectwhere
RawVecInner: Sync,
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl UnwindSafe for Effectwhere
RawVecInner: UnwindSafe,
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