Skip to main content

VarBindFormatter

Trait VarBindFormatter 

Source
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§

Source

fn format_oid(&self, oid: &Oid) -> String

Format a numeric OID symbolically (e.g., “IF-MIB::ifDescr.1”).

Source

fn format_value(&self, oid: &Oid, value: &Value) -> String

Format a value using type metadata for the given OID.

Implementors§

Source§

impl VarBindFormatter for Mib

Available on crate feature cli only.