pub struct Effect<'i, S: AuthState> { /* private fields */ }Expand description
Phantom-typed Effect — carries Op payload + Principal origin tag.
instance_id is the runtime witness retained against brand-erasure
at WAL boundaries (replay reconstructs a fresh 'j-branded scope and
uses the witness to verify the instance binding survives).
Implementations§
Source§impl<'i, S: AuthState> Effect<'i, S>
impl<'i, S: AuthState> Effect<'i, S>
Sourcepub fn instance_id(&self) -> InstanceId
pub fn instance_id(&self) -> InstanceId
InstanceId this effect is bound to. Survives the brand-erasure
boundary at WAL serialize/deserialize.
Trait Implementations§
Auto Trait Implementations§
impl<'i, S> !Freeze for Effect<'i, S>
impl<'i, S> RefUnwindSafe for Effect<'i, S>where
S: RefUnwindSafe,
impl<'i, S> Send for Effect<'i, S>where
S: Send,
impl<'i, S> Sync for Effect<'i, S>where
S: Sync,
impl<'i, S> Unpin for Effect<'i, S>where
S: Unpin,
impl<'i, S> UnsafeUnpin for Effect<'i, S>
impl<'i, S> UnwindSafe for Effect<'i, S>where
S: 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