pub enum ResolveOutcome {
Success(ResolvedData),
IntegrityFailure,
Unreachable,
}Expand description
The typed result of a resolve. The three cases are exhaustive and never conflated.
Variants§
Success(ResolvedData)
Verified, decrypted content.
IntegrityFailure
The served bytes failed integrity verification — a hard, fail-closed security failure. The unverified bytes are NEVER carried here.
Unreachable
Every transport tier was unreachable — a friendly, retryable network state.
Implementations§
Source§impl ResolveOutcome
impl ResolveOutcome
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
true iff this is verified content.
Sourcepub fn data(&self) -> Option<&ResolvedData>
pub fn data(&self) -> Option<&ResolvedData>
The verified data, if this is a success.
Trait Implementations§
Source§impl Clone for ResolveOutcome
impl Clone for ResolveOutcome
Source§fn clone(&self) -> ResolveOutcome
fn clone(&self) -> ResolveOutcome
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 ResolveOutcome
impl Debug for ResolveOutcome
impl Eq for ResolveOutcome
Source§impl PartialEq for ResolveOutcome
impl PartialEq for ResolveOutcome
impl StructuralPartialEq for ResolveOutcome
Auto Trait Implementations§
impl Freeze for ResolveOutcome
impl RefUnwindSafe for ResolveOutcome
impl Send for ResolveOutcome
impl Sync for ResolveOutcome
impl Unpin for ResolveOutcome
impl UnsafeUnpin for ResolveOutcome
impl UnwindSafe for ResolveOutcome
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