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 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