pub struct SnmpUsmEngineTime { /* private fields */ }Expand description
RFC 3414 USM authoritative engine boots/time wire fields.
This is an inspectable pair of INTEGER values. It does not imply local engine state, replay windows, authoritative-engine discovery, or timeliness validation.
Implementations§
Source§impl SnmpUsmEngineTime
impl SnmpUsmEngineTime
Sourcepub const fn new(engine_boots: i64, engine_time: i64) -> Self
pub const fn new(engine_boots: i64, engine_time: i64) -> Self
Build a wire-level USM authoritative engine boots/time pair.
RFC 3414 timeliness windows and authoritative-engine discovery are operational behavior for generated tools or probe cases, not crate validation policy.
Sourcepub const fn engine_boots(self) -> i64
pub const fn engine_boots(self) -> i64
msgAuthoritativeEngineBoots INTEGER value.
Sourcepub const fn engine_time(self) -> i64
pub const fn engine_time(self) -> i64
msgAuthoritativeEngineTime INTEGER value.
Sourcepub fn inspection_fields(self) -> Vec<(&'static str, String)>
pub fn inspection_fields(self) -> Vec<(&'static str, String)>
Stable inspection fields for generated tools.
Trait Implementations§
Source§impl Clone for SnmpUsmEngineTime
impl Clone for SnmpUsmEngineTime
Source§fn clone(&self) -> SnmpUsmEngineTime
fn clone(&self) -> SnmpUsmEngineTime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SnmpUsmEngineTime
Source§impl Debug for SnmpUsmEngineTime
impl Debug for SnmpUsmEngineTime
impl Eq for SnmpUsmEngineTime
Source§impl PartialEq for SnmpUsmEngineTime
impl PartialEq for SnmpUsmEngineTime
Source§fn eq(&self, other: &SnmpUsmEngineTime) -> bool
fn eq(&self, other: &SnmpUsmEngineTime) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SnmpUsmEngineTime
Auto Trait Implementations§
impl Freeze for SnmpUsmEngineTime
impl RefUnwindSafe for SnmpUsmEngineTime
impl Send for SnmpUsmEngineTime
impl Sync for SnmpUsmEngineTime
impl Unpin for SnmpUsmEngineTime
impl UnsafeUnpin for SnmpUsmEngineTime
impl UnwindSafe for SnmpUsmEngineTime
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