pub struct SyncSession { /* private fields */ }Expand description
Synchronous SNMPv2 client.
Implementations§
Source§impl SyncSession
impl SyncSession
pub fn new_v1<SA>(
destination: SA,
community: &[u8],
timeout: Option<Duration>,
starting_req_id: i32,
) -> Result<Self>where
SA: ToSocketAddrs,
pub fn new_v2c<SA>(
destination: SA,
community: &[u8],
timeout: Option<Duration>,
starting_req_id: i32,
) -> Result<Self>where
SA: ToSocketAddrs,
pub fn new<SA>(
version: SnmpVersion,
destination: SA,
community: &[u8],
timeout: Option<Duration>,
starting_req_id: i32,
) -> Result<Self>where
SA: ToSocketAddrs,
pub fn get(&mut self, oid: &Oid<'_>) -> Result<SnmpPdu<'_>, SnmpError>
pub fn getnext(&mut self, oid: &Oid<'_>) -> Result<SnmpPdu<'_>, SnmpError>
pub fn getbulk( &mut self, oids: &[&Oid<'_>], non_repeaters: u32, max_repetitions: u32, ) -> Result<SnmpPdu<'_>, SnmpError>
Auto Trait Implementations§
impl Freeze for SyncSession
impl RefUnwindSafe for SyncSession
impl Send for SyncSession
impl Sync for SyncSession
impl Unpin for SyncSession
impl UnwindSafe for SyncSession
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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