pub enum RowStatus {
Active = 1,
NotInService = 2,
NotReady = 3,
CreateAndGo = 4,
CreateAndWait = 5,
Destroy = 6,
}Expand description
RFC 2579 RowStatus textual convention.
Used by SNMP tables to control row creation, modification, and deletion. The state machine for RowStatus is defined in RFC 2579 Section 7.1.
§State Transitions
| Current State | Set to | Result |
|---|---|---|
| (none) | createAndGo | row created in active state |
| (none) | createAndWait | row created in notInService or notReady |
| notInService | active | row becomes operational |
| notReady | active | error (row must first be notInService) |
| active | notInService | row becomes inactive |
| any | destroy | row is deleted |
§Example
use async_snmp::{Value, RowStatus};
// Reading a RowStatus column
let value = Value::Integer(1);
assert_eq!(value.as_row_status(), Some(RowStatus::Active));
// Creating a value to write
let create: Value = RowStatus::CreateAndGo.into();
assert_eq!(create, Value::Integer(4));Variants§
Active = 1
Row is operational and available for use.
NotInService = 2
Row exists but is not operational (e.g., being modified).
NotReady = 3
Row exists but required columns are missing or invalid.
CreateAndGo = 4
Request to create a new row that immediately becomes active.
CreateAndWait = 5
Request to create a new row that starts in notInService/notReady.
Destroy = 6
Request to delete an existing row.
Implementations§
Trait Implementations§
impl Copy for RowStatus
impl Eq for RowStatus
impl StructuralPartialEq for RowStatus
Auto Trait Implementations§
impl Freeze for RowStatus
impl RefUnwindSafe for RowStatus
impl Send for RowStatus
impl Sync for RowStatus
impl Unpin for RowStatus
impl UnsafeUnpin for RowStatus
impl UnwindSafe for RowStatus
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.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§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>
Converts
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>
Converts
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