pub enum FrameSpecError {
NotARegistration,
NotProviderAddressed,
Constraints(ConstraintError),
InterestDigestMismatch,
}Expand description
Why a registration frame’s carried predicate failed intake
validation (SensingInterestFrame::validated_spec). Counter
discipline mirrors the leader’s gate (r) intake: constraint
rejections are counted by validate_interest_constraints; an
interest-digest mismatch bumps
SensingCounters::protocol_invalid.
Variants§
NotARegistration
The frame is a Deregister — it carries no interest spec.
NotProviderAddressed
The frame is not the provider-addressed leg
(SensingInterestFrame::validate_provider_registration
only).
Constraints(ConstraintError)
The inline constraint bytes failed parse or digest validation (already counted).
InterestDigestMismatch
The re-derived interest digest does not match the frame’s claim: the sender’s bytes don’t hash to the identity it asserted — protocol-invalid input (already counted). Nothing may coalesce under, or be signed against, the claimed digest.
Implementations§
Source§impl FrameSpecError
impl FrameSpecError
Sourcepub const fn is_security_relevant(self) -> bool
pub const fn is_security_relevant(self) -> bool
Whether this rejection incremented the protocol-invalid/ security counter (forged or malformed protocol input, as opposed to an addressing or plain-decode problem).
Trait Implementations§
Source§impl Clone for FrameSpecError
impl Clone for FrameSpecError
Source§fn clone(&self) -> FrameSpecError
fn clone(&self) -> FrameSpecError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FrameSpecError
Source§impl Debug for FrameSpecError
impl Debug for FrameSpecError
Source§impl Display for FrameSpecError
impl Display for FrameSpecError
impl Eq for FrameSpecError
Source§impl Error for FrameSpecError
impl Error for FrameSpecError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for FrameSpecError
impl PartialEq for FrameSpecError
impl StructuralPartialEq for FrameSpecError
Auto Trait Implementations§
impl Freeze for FrameSpecError
impl RefUnwindSafe for FrameSpecError
impl Send for FrameSpecError
impl Sync for FrameSpecError
impl Unpin for FrameSpecError
impl UnsafeUnpin for FrameSpecError
impl UnwindSafe for FrameSpecError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.