Struct snmp::SyncSession
[−]
[src]
pub struct SyncSession { /* fields omitted */ }
Synchronous SNMPv2 client.
Methods
impl SyncSession
[src]
fn new<SA>(
destination: SA,
community: &[u8],
timeout: Option<Duration>,
starting_req_id: i32
) -> Result<Self> where
SA: ToSocketAddrs,
destination: SA,
community: &[u8],
timeout: Option<Duration>,
starting_req_id: i32
) -> Result<Self> where
SA: ToSocketAddrs,
fn get(&mut self, name: &[u32]) -> Result<SnmpPdu, SnmpError>
fn getnext(&mut self, name: &[u32]) -> Result<SnmpPdu, SnmpError>
fn getbulk(
&mut self,
names: &[&[u32]],
non_repeaters: u32,
max_repetitions: u32
) -> Result<SnmpPdu, SnmpError>
&mut self,
names: &[&[u32]],
non_repeaters: u32,
max_repetitions: u32
) -> Result<SnmpPdu, SnmpError>
fn set(&mut self, values: &[(&[u32], Value)]) -> Result<SnmpPdu, SnmpError>
Panics if any of the values are not one of these supported types:
Boolean
Null
Integer
OctetString
ObjectIdentifier
IpAddress
Counter32
Unsigned32
Timeticks
Opaque
Counter64