struct EventContentRef<'a, P: Serialize> {
header: &'a EventHeader,
payload: &'a P,
}Expand description
Borrows header + payload for content-only hashing.
The hash_chain field is intentionally excluded: event_hash is the hash
of the event content, so including it would create a circular dependency
(the hash would need to contain itself).
Fields§
§header: &'a EventHeader§payload: &'a PTrait Implementations§
Auto Trait Implementations§
impl<'a, P> Freeze for EventContentRef<'a, P>
impl<'a, P> RefUnwindSafe for EventContentRef<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for EventContentRef<'a, P>where
P: Sync,
impl<'a, P> Sync for EventContentRef<'a, P>where
P: Sync,
impl<'a, P> Unpin for EventContentRef<'a, P>
impl<'a, P> UnwindSafe for EventContentRef<'a, P>where
P: RefUnwindSafe,
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