pub struct HeldContext<'a> {
pub body: &'a Body,
pub events: &'a [Value],
}Expand description
What a consumer already holds for the context a lifecycle entry is
about. Lets verify_change apply the entry without re-retrieving,
which §7 step 1 allows only when every earlier event (indexes 0 to
index − 1) is held and verified.
Fields§
§body: &'a BodyThe context’s verified body.
events: &'a [Value]Its verified lifecycle events, raw as served, in array order from index 0.
Trait Implementations§
Source§impl<'a> Clone for HeldContext<'a>
impl<'a> Clone for HeldContext<'a>
impl<'a> Copy for HeldContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for HeldContext<'a>
impl<'a> RefUnwindSafe for HeldContext<'a>
impl<'a> Send for HeldContext<'a>
impl<'a> Sync for HeldContext<'a>
impl<'a> Unpin for HeldContext<'a>
impl<'a> UnsafeUnpin for HeldContext<'a>
impl<'a> UnwindSafe for HeldContext<'a>
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