pub struct Attested<T, Via> { /* private fields */ }Expand description
A machine value with attached typed provenance for how it was produced.
Statum uses this wrapper for attested transition routes such as
capture_and_attest() and generated from_*() binders. The public surface
exposes the wrapped machine and the route type, but construction stays on
the macro-generated path so ordinary callers cannot forge attestation
accidentally.
Implementations§
Trait Implementations§
Source§impl<T: Ord, Via: Ord> Ord for Attested<T, Via>
impl<T: Ord, Via: Ord> Ord for Attested<T, Via>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd, Via: PartialOrd> PartialOrd for Attested<T, Via>
impl<T: PartialOrd, Via: PartialOrd> PartialOrd for Attested<T, Via>
impl<T: Copy, Via: Copy> Copy for Attested<T, Via>
impl<T: Eq, Via: Eq> Eq for Attested<T, Via>
impl<T, Via> StructuralPartialEq for Attested<T, Via>
Auto Trait Implementations§
impl<T, Via> Freeze for Attested<T, Via>where
T: Freeze,
impl<T, Via> RefUnwindSafe for Attested<T, Via>where
T: RefUnwindSafe,
Via: RefUnwindSafe,
impl<T, Via> Send for Attested<T, Via>
impl<T, Via> Sync for Attested<T, Via>
impl<T, Via> Unpin for Attested<T, Via>
impl<T, Via> UnsafeUnpin for Attested<T, Via>where
T: UnsafeUnpin,
impl<T, Via> UnwindSafe for Attested<T, Via>where
T: UnwindSafe,
Via: 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