rasn-snmp 0.26.6

Data types for handling the Simple Network Management Protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Version 2, Community Version (RFC 1901)
use rasn::prelude::*;

#[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, PartialOrd, Eq, Ord, Hash)]
pub struct Message<T> {
    pub version: Integer,
    pub community: OctetString,
    pub data: T,
}

impl<T> Message<T> {
    pub const VERSION: u64 = 1;
}