[−][src]Enum snmp_mp::VarValue
Represents a variable binding value.
Examples
use snmp_mp::VarValue; let var_value = VarValue::Int(1);
Variants
Int(i32)
The Integer32 type represents integer-valued information between -2^31 and 2^31-1 inclusive (-2_147_483_648 to 2_147_483_647 decimal).
The OCTET STRING type represents arbitrary binary or textual data.
ObjectId(ObjectIdent)
The OBJECT IDENTIFIER type represents administratively assigned names.
The IpAddress type represents a 32-bit internet address. It is represented as an OCTET STRING of length 4, in network byte-order.
Counter(u32)
The Counter32 type represents a non-negative integer which monotonically increases until it reaches a maximum value of 2^32-1 (4_294_967_295 decimal), when it wraps around and starts increasing again from zero.
UnsignedInt(u32)
The Unsigned32 type represents integer-valued information between 0 and 2^32-1 inclusive (0 to 4_294_967_295 decimal).
TimeTicks(u32)
The TimeTicks type represents a non-negative integer which represents the time, modulo 2^32 (4_294_967_296 decimal), in hundredths of a second between two epochs.
The Opaque type is provided solely for backward-compatibility.
BigCounter(u64)
The Counter64 type represents a non-negative integer which monotonically increases until it reaches a maximum value of 2^64-1 (18_446_744_073_709_551_615 decimal), when it wraps around and starts increasing again from zero.
Some PDUs (e.g., the GetRequest-PDU) are concerned only with the name of a variable and not
its value. In this case, the value portion of the variable binding is ignored by the
receiving SNMP entity. The UnSpecified
value is defined for use as the value portion of
such bindings.
If a variable binding's name does not have an object identifier prefix which exactly matches
any variable, then its value is set to NoSuchObject
.
If a variable binding's name does not matches an existing instance, then its value is set to
NoSuchInstance
.
EndOfMibView
signifies the end of the data in the requested view.
Trait Implementations
impl Clone for VarValue
[src]
impl Debug for VarValue
[src]
impl Default for VarValue
[src]
impl Eq for VarValue
[src]
impl Hash for VarValue
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<VarValue> for VarValue
[src]
impl StructuralEq for VarValue
[src]
impl StructuralPartialEq for VarValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for VarValue
impl Send for VarValue
impl Sync for VarValue
impl Unpin for VarValue
impl UnwindSafe for VarValue
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,