pub struct ClientConfig {
pub version: Version,
pub community: Bytes,
pub timeout: Duration,
pub retry: Retry,
pub max_oids_per_request: usize,
pub v3_security: Option<UsmConfig>,
pub walk_mode: WalkMode,
pub oid_ordering: OidOrdering,
pub max_walk_results: Option<usize>,
pub max_repetitions: u32,
pub local_engine_id: Option<Bytes>,
pub local_engine_boots: u32,
}Expand description
Client configuration.
Most users should use ClientBuilder rather than constructing this directly.
Fields§
§version: VersionSNMP version (default: V2c)
community: BytesCommunity string for v1/v2c (default: “public”)
timeout: DurationRequest timeout (default: 5 seconds)
retry: RetryRetry configuration (default: 3 retries, 1-second delay)
max_oids_per_request: usizeMaximum OIDs per request (default: 10)
v3_security: Option<UsmConfig>SNMPv3 security configuration (default: None)
walk_mode: WalkModeWalk operation mode (default: Auto)
oid_ordering: OidOrderingOID ordering behavior during walk operations (default: Strict)
max_walk_results: Option<usize>Maximum results from a single walk operation (default: None/unlimited)
max_repetitions: u32Max-repetitions for GETBULK operations (default: 25)
local_engine_id: Option<Bytes>Local engine ID for V3 trap sending (default: None).
Per RFC 3412 Section 6.4, the sender is the authoritative engine for trap PDUs. This engine ID is used to localize keys for outbound V3 traps.
local_engine_boots: u32Local engine boots base value for V3 trap sending (default: 1).
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more