pub struct SyncSession { /* private fields */ }
Expand description
Synchronous SNMPv2 client.
Implementations§
Source§impl SyncSession
impl SyncSession
pub fn new<SA>(
destination: SA,
community: &[u8],
timeout: Option<Duration>,
starting_req_id: i32,
) -> Result<Self>where
SA: ToSocketAddrs,
pub fn get(&mut self, name: &[u32]) -> Result<SnmpPdu<'_>, SnmpError>
pub fn getnext(&mut self, name: &[u32]) -> Result<SnmpPdu<'_>, SnmpError>
pub fn getbulk( &mut self, names: &[&[u32]], 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<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