#[repr(u8)]pub enum BaseType {
Show 15 variants
Unknown = 0,
Integer32 = 1,
Unsigned32 = 2,
Counter32 = 3,
Counter64 = 4,
Gauge32 = 5,
TimeTicks = 6,
IpAddress = 7,
OctetString = 8,
ObjectIdentifier = 9,
Bits = 10,
Opaque = 11,
Sequence = 12,
Integer64 = 13,
Unsigned64 = 14,
}Expand description
Fundamental SMI type that a textual convention or Kind::Scalar/Kind::Column
object ultimately resolves to.
Variants§
Unknown = 0
Base type not yet resolved.
Integer32 = 1
32-bit signed integer (INTEGER, Integer32).
Unsigned32 = 2
32-bit unsigned integer (Unsigned32).
Counter32 = 3
32-bit monotonically increasing counter.
Counter64 = 4
64-bit monotonically increasing counter.
Gauge32 = 5
32-bit non-negative integer that can increase or decrease.
TimeTicks = 6
Hundredths of a second since an epoch.
IpAddress = 7
IPv4 address (4 octets).
OctetString = 8
Arbitrary binary or text data.
ObjectIdentifier = 9
ASN.1 OBJECT IDENTIFIER value.
Bits = 10
Named bit set.
Opaque = 11
Opaque data (wraps arbitrary ASN.1).
Sequence = 12
SEQUENCE type used for table row definitions.
Integer64 = 13
64-bit signed integer (SPPI).
Unsigned64 = 14
64-bit unsigned integer (SPPI).
Trait Implementations§
impl Copy for BaseType
impl Eq for BaseType
impl StructuralPartialEq for BaseType
Auto Trait Implementations§
impl Freeze for BaseType
impl RefUnwindSafe for BaseType
impl Send for BaseType
impl Sync for BaseType
impl Unpin for BaseType
impl UnsafeUnpin for BaseType
impl UnwindSafe for BaseType
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> 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
Compare self to
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>
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