pub struct Schedule {
pub took: Vec<usize>,
pub gave: Vec<usize>,
pub proof: Lrat,
}Expand description
A side’s schedule under its environment: the clocks it took its input tokens at and gave its output tokens at, and the derivation, from the side unrolled alone, that every handshake is the constant it was taken to be.
Fields§
§took: Vec<usize>§gave: Vec<usize>§proof: LratImplementations§
Source§impl Schedule
impl Schedule
Sourcepub fn check(&self, side: &StreamSide<'_>, env: &Environment<'_>) -> bool
pub fn check(&self, side: &StreamSide<'_>, env: &Environment<'_>) -> bool
The clocks are in the order the tokens pass (token j the j-th taken, the j-th given), and the derivation replays from the side unrolled alone and proves every handshake the constant the schedule says.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnsafeUnpin for Schedule
impl UnwindSafe for Schedule
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