#[repr(u8)]pub enum ResolverStrictness {
Strict = 0,
Normal = 1,
Permissive = 2,
}Expand description
Controls resolver fallback behavior when resolving cross-module references.
Ordered from strictest (fewest fallbacks) to most permissive.
See also ReportingLevel which controls diagnostic output separately.
All levels support direct import resolution, import forwarding (following re-exports declared in the source module’s own IMPORTS), partial import resolution, ASN.1 primitive type fallback, and well-known OID roots.
See the crate-level docs for a detailed breakdown of behaviors per level.
Variants§
Strict = 0
Minimal fallbacks. Only deterministic strategies that don’t guess the source module (direct imports, import forwarding, ASN.1 primitives, well-known OID roots).
Normal = 1
Constrained fallbacks: module name aliases, unimported SMI/TC type lookup, SMI global OID root fallback, TRAP-TYPE enterprise lookup.
Permissive = 2
All fallbacks, including global symbol search across all loaded modules for objects, group members, and compliance targets.
Implementations§
Source§impl ResolverStrictness
impl ResolverStrictness
Sourcepub fn allow_constrained_fallbacks(self) -> bool
pub fn allow_constrained_fallbacks(self) -> bool
Reports whether tier-2 constrained fallbacks are enabled (Normal+).
Sourcepub fn allow_global_fallbacks(self) -> bool
pub fn allow_global_fallbacks(self) -> bool
Reports whether tier-3 global fallbacks are enabled (Permissive only).
Trait Implementations§
Source§impl Clone for ResolverStrictness
impl Clone for ResolverStrictness
Source§fn clone(&self) -> ResolverStrictness
fn clone(&self) -> ResolverStrictness
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResolverStrictness
impl Debug for ResolverStrictness
Source§impl Display for ResolverStrictness
impl Display for ResolverStrictness
Source§impl Hash for ResolverStrictness
impl Hash for ResolverStrictness
Source§impl PartialEq for ResolverStrictness
impl PartialEq for ResolverStrictness
impl Copy for ResolverStrictness
impl Eq for ResolverStrictness
impl StructuralPartialEq for ResolverStrictness
Auto Trait Implementations§
impl Freeze for ResolverStrictness
impl RefUnwindSafe for ResolverStrictness
impl Send for ResolverStrictness
impl Sync for ResolverStrictness
impl Unpin for ResolverStrictness
impl UnsafeUnpin for ResolverStrictness
impl UnwindSafe for ResolverStrictness
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.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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more