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.
Implementors§
impl VarBindFormatter for Mib
Available on crate feature
cli only.