Struct csnmp::client::OperationOptions
source · pub struct OperationOptions {
pub target: SocketAddr,
pub send_timeout: Option<Duration>,
pub receive_timeout: Option<Duration>,
pub community: Vec<u8>,
pub retries: usize,
}
Expand description
Options governing SNMP2c operations.
Fields§
§target: SocketAddr
The IP address and port of the device with which the client is communicating.
send_timeout: Option<Duration>
The maximum duration a send operation is allowed to take.
receive_timeout: Option<Duration>
The maximum duration that the client should wait for a response from the other device.
community: Vec<u8>
The community string used for SNMP2c authentication.
retries: usize
The number of additional attempts to perform if no response is received after the first attempt.
Trait Implementations§
source§impl Clone for OperationOptions
impl Clone for OperationOptions
source§fn clone(&self) -> OperationOptions
fn clone(&self) -> OperationOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OperationOptions
impl Debug for OperationOptions
source§impl Hash for OperationOptions
impl Hash for OperationOptions
source§impl Ord for OperationOptions
impl Ord for OperationOptions
source§fn cmp(&self, other: &OperationOptions) -> Ordering
fn cmp(&self, other: &OperationOptions) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for OperationOptions
impl PartialEq for OperationOptions
source§fn eq(&self, other: &OperationOptions) -> bool
fn eq(&self, other: &OperationOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OperationOptions
impl PartialOrd for OperationOptions
source§fn partial_cmp(&self, other: &OperationOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &OperationOptions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for OperationOptions
impl StructuralEq for OperationOptions
impl StructuralPartialEq for OperationOptions
Auto Trait Implementations§
impl RefUnwindSafe for OperationOptions
impl Send for OperationOptions
impl Sync for OperationOptions
impl Unpin for OperationOptions
impl UnwindSafe for OperationOptions
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