pub struct VerifyOutcome {
pub retained: Vec<FrameId>,
pub dropped: Vec<DroppedFrame>,
}Expand description
The result of revalidating a held frame set (docs/context-reuse.md §4).
Partitions the input into frames the host may keep reusing and frames it
must drop. The partition is total and default-deny: every input identity
appears in exactly one of the two lists, and it lands in retained only on
an explicit valid.
Fields§
§retained: Vec<FrameId>Frames that verified valid — safe to keep reusing, and the frames
whose byte-stable reuse §1’s canonical ordering was built to protect.
dropped: Vec<DroppedFrame>Frames that must leave the composed context, each with its reason.
Implementations§
Source§impl VerifyOutcome
impl VerifyOutcome
Sourcepub fn requery(&self) -> impl Iterator<Item = &FrameId>
pub fn requery(&self) -> impl Iterator<Item = &FrameId>
The dropped frames worth re-querying — everything except gone, which
is not there to re-fetch.
Sourcepub fn was_dropped(&self, frame: &FrameId) -> bool
pub fn was_dropped(&self, frame: &FrameId) -> bool
Whether an identity was dropped.
Sourcepub fn drop_reason(&self, frame: &FrameId) -> Option<&DropReason>
pub fn drop_reason(&self, frame: &FrameId) -> Option<&DropReason>
The reason an identity was dropped, if it was.
Trait Implementations§
Source§impl Clone for VerifyOutcome
impl Clone for VerifyOutcome
Source§fn clone(&self) -> VerifyOutcome
fn clone(&self) -> VerifyOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VerifyOutcome
impl Debug for VerifyOutcome
Source§impl Default for VerifyOutcome
impl Default for VerifyOutcome
Source§fn default() -> VerifyOutcome
fn default() -> VerifyOutcome
Returns the “default value” for a type. Read more
impl Eq for VerifyOutcome
Source§impl PartialEq for VerifyOutcome
impl PartialEq for VerifyOutcome
impl StructuralPartialEq for VerifyOutcome
Auto Trait Implementations§
impl Freeze for VerifyOutcome
impl RefUnwindSafe for VerifyOutcome
impl Send for VerifyOutcome
impl Sync for VerifyOutcome
impl Unpin for VerifyOutcome
impl UnsafeUnpin for VerifyOutcome
impl UnwindSafe for VerifyOutcome
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