pub struct VarBindInfo<'a> {
pub object_name: &'a str,
pub module_name: &'a str,
pub suffix: SmallVec<[u32; 4]>,
pub units: &'a str,
pub access: Access,
pub kind: Kind,
pub formatted_value: String,
}Expand description
Richer metadata about a VarBind for programmatic use.
The struct borrows object_name, module_name, and units from the
Mib, while suffix and formatted_value are owned. Callers cannot
detach the struct from the Mib lifetime.
Fields§
§object_name: &'a strThe object name (e.g., “ifDescr”).
module_name: &'a strThe module that defines the object (e.g., “IF-MIB”).
suffix: SmallVec<[u32; 4]>The instance suffix arcs after the object OID.
units: &'a strThe UNITS clause from the object definition.
access: AccessThe MAX-ACCESS of the object.
kind: KindThe object kind (scalar, column, table, etc.).
formatted_value: StringThe value formatted using MIB metadata.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for VarBindInfo<'a>
impl<'a> RefUnwindSafe for VarBindInfo<'a>
impl<'a> Send for VarBindInfo<'a>
impl<'a> Sync for VarBindInfo<'a>
impl<'a> Unpin for VarBindInfo<'a>
impl<'a> UnsafeUnpin for VarBindInfo<'a>
impl<'a> UnwindSafe for VarBindInfo<'a>
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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