pub enum GetNextResult {
Value(VarBind),
EndOfMibView,
}Expand description
Result of a GETNEXT operation.
This enum provides symmetry with GetResult for the GETNEXT operation:
Value: Returns the next OID/value pair in the MIB treeEndOfMibView: No more OIDs after the given one in this handler’s subtree
For SNMPv1, EndOfMibView results in a noSuchName error response.
For SNMPv2c/v3, it results in the endOfMibView exception value.
Variants§
Value(VarBind)
The next OID/value pair in the MIB tree.
EndOfMibView
No more OIDs after the given one (end of MIB view).
Implementations§
Source§impl GetNextResult
impl GetNextResult
Sourcepub fn from_option(value: Option<VarBind>) -> Self
pub fn from_option(value: Option<VarBind>) -> Self
Create a GetNextResult from an Option<VarBind>.
This is a convenience method for migrating from the previous
Option<VarBind> interface. None is treated as EndOfMibView.
Sourcepub fn is_end_of_mib_view(&self) -> bool
pub fn is_end_of_mib_view(&self) -> bool
Returns true if this is end of MIB view.
Sourcepub fn into_option(self) -> Option<VarBind>
pub fn into_option(self) -> Option<VarBind>
Converts to an Option<VarBind>.
Trait Implementations§
Source§impl Clone for GetNextResult
impl Clone for GetNextResult
Source§fn clone(&self) -> GetNextResult
fn clone(&self) -> GetNextResult
Returns a duplicate 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 GetNextResult
impl Debug for GetNextResult
Source§impl From<VarBind> for GetNextResult
impl From<VarBind> for GetNextResult
Source§impl PartialEq for GetNextResult
impl PartialEq for GetNextResult
impl StructuralPartialEq for GetNextResult
Auto Trait Implementations§
impl !Freeze for GetNextResult
impl RefUnwindSafe for GetNextResult
impl Send for GetNextResult
impl Sync for GetNextResult
impl Unpin for GetNextResult
impl UnwindSafe for GetNextResult
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