#[repr(C, align(64))]pub struct DualKernel<I1: Invariant + Copy, I2: Invariant + Copy> {
pub frontier: FrontierState,
pub state1: StateCell,
pub state2: StateCell,
pub inv1: I1,
pub inv2: I2,
}Fields§
§frontier: FrontierState§state1: StateCell§state2: StateCell§inv1: I1§inv2: I2Implementations§
Source§impl<I1: Invariant + Copy, I2: Invariant + Copy> DualKernel<I1, I2>
impl<I1: Invariant + Copy, I2: Invariant + Copy> DualKernel<I1, I2>
pub fn new(inv1: I1, state1: StateCell, inv2: I2, state2: StateCell) -> Self
pub fn admit( &mut self, fact_id: &FactId, deps: &[FactId], payload1: &[u8], payload2: &[u8], ) -> Result<(), AdmitError>
pub fn query(&self, requirement: &CausalClock) -> bool
pub fn clock(&self) -> &CausalClock
Auto Trait Implementations§
impl<I1, I2> Freeze for DualKernel<I1, I2>
impl<I1, I2> RefUnwindSafe for DualKernel<I1, I2>where
I1: RefUnwindSafe,
I2: RefUnwindSafe,
impl<I1, I2> Send for DualKernel<I1, I2>
impl<I1, I2> Sync for DualKernel<I1, I2>
impl<I1, I2> Unpin for DualKernel<I1, I2>
impl<I1, I2> UnwindSafe for DualKernel<I1, I2>where
I1: UnwindSafe,
I2: 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