pub trait VarBindFormatter {
// Required methods
fn format_oid(&self, oid: &Oid) -> String;
fn format_value(&self, oid: &Oid, value: &Value) -> String;
}Expand description
Trait for formatting OIDs and values using external metadata.
Implementors provide symbolic OID formatting and type-aware value rendering.
Used by OutputContext to produce richer output when available.
Required Methods§
Sourcefn format_oid(&self, oid: &Oid) -> String
fn format_oid(&self, oid: &Oid) -> String
Format a numeric OID symbolically (e.g., “IF-MIB::ifDescr.1”).
Sourcefn format_value(&self, oid: &Oid, value: &Value) -> String
fn format_value(&self, oid: &Oid, value: &Value) -> String
Format a value using type metadata for the given OID.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl VarBindFormatter for Mib
Available on crate feature
cli only.