#[repr(u8)]pub enum Kind {
Show 13 variants
Unknown = 0,
Internal = 1,
Node = 2,
Scalar = 3,
Table = 4,
Row = 5,
Column = 6,
Notification = 7,
Group = 8,
Compliance = 9,
Capability = 10,
ModuleIdentity = 11,
ObjectIdentity = 12,
}Expand description
Identifies what an OID node represents in the MIB tree.
Variants§
Unknown = 0
Kind not yet determined.
Internal = 1
Synthetic internal node (e.g. root of the OID tree).
Node = 2
Plain OID registration (OBJECT IDENTIFIER value assignment).
Scalar = 3
Scalar OBJECT-TYPE (single-instance managed object).
Table = 4
Table OBJECT-TYPE (SEQUENCE OF).
Row = 5
Row OBJECT-TYPE (conceptual row / SEQUENCE entry).
Column = 6
Column OBJECT-TYPE (leaf within a row).
Notification = 7
NOTIFICATION-TYPE or TRAP-TYPE definition.
Group = 8
OBJECT-GROUP or NOTIFICATION-GROUP.
Compliance = 9
MODULE-COMPLIANCE definition.
Capability = 10
AGENT-CAPABILITIES definition.
ModuleIdentity = 11
MODULE-IDENTITY definition.
ObjectIdentity = 12
OBJECT-IDENTITY definition.
Implementations§
Source§impl Kind
impl Kind
Sourcepub fn is_object_type(self) -> bool
pub fn is_object_type(self) -> bool
Reports whether this is a scalar/table/row/column.
Sourcepub fn is_conformance(self) -> bool
pub fn is_conformance(self) -> bool
Reports whether this is a group/compliance/capabilities node.
Sourcepub fn is_node_like(self) -> bool
pub fn is_node_like(self) -> bool
Reports whether this is a plain node-like kind (node, module-identity, object-identity).
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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