pub enum SetUndoError {
Failed,
}Available on crate feature
agent only.Expand description
Failure from the SET undo phase.
The dedicated type prevents an undo callback from returning validation or
commit-only statuses. The agent maps this failure to undoFailed with
error-index zero for SNMPv2c/v3. For SNMPv1, RFC 2576 downgrades the status
to genErr and uses the failed undo binding’s one-based index.
Variants§
Failed
Rolling back the attempted change failed.
Implementations§
Source§impl SetUndoError
impl SetUndoError
Sourcepub const fn to_error_status(self) -> ErrorStatus
pub const fn to_error_status(self) -> ErrorStatus
Convert this undo failure to its protocol response status.
Trait Implementations§
Source§impl Clone for SetUndoError
impl Clone for SetUndoError
Source§fn clone(&self) -> SetUndoError
fn clone(&self) -> SetUndoError
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 SetUndoError
Source§impl Debug for SetUndoError
impl Debug for SetUndoError
impl Eq for SetUndoError
Source§impl PartialEq for SetUndoError
impl PartialEq for SetUndoError
impl StructuralPartialEq for SetUndoError
Auto Trait Implementations§
impl Freeze for SetUndoError
impl RefUnwindSafe for SetUndoError
impl Send for SetUndoError
impl Sync for SetUndoError
impl Unpin for SetUndoError
impl UnsafeUnpin for SetUndoError
impl UnwindSafe for SetUndoError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.