pub enum SetResult {
Show 13 variants
Ok,
NoAccess,
NotWritable,
WrongType,
WrongLength,
WrongEncoding,
WrongValue,
NoCreation,
InconsistentValue,
ResourceUnavailable,
CommitFailed,
UndoFailed,
InconsistentName,
}Expand description
Result of a SET operation phase.
This enum is used by the three-phase SET protocol:
test_set: Returns Ok if the SET would succeedcommit_set: Returns Ok if the change was appliedundo_set: Does not return SetResult (best-effort rollback)
The variants map to RFC 3416 error status codes.
Variants§
Ok
Operation succeeded.
NoAccess
Access denied (security/authorization failure).
Use this when the request lacks sufficient access rights to modify the object, based on the security context (user, community, etc.). Maps to RFC 3416 error status code 6 (noAccess).
NotWritable
Object is inherently read-only (not writable by design).
Use this when the object cannot be modified regardless of who is making the request. Maps to RFC 3416 error status code 17 (notWritable).
WrongType
Value has wrong ASN.1 type for this OID.
WrongLength
Value has wrong length for this OID.
WrongEncoding
Value encoding is incorrect.
WrongValue
Value is not valid for this OID (semantic check failed).
NoCreation
Cannot create new row (table doesn’t support row creation).
InconsistentValue
Value is inconsistent with other values in the same SET.
Resource unavailable (memory, locks, etc.).
CommitFailed
Commit failed (internal error during apply).
UndoFailed
Undo failed (internal error during rollback).
InconsistentName
Row name is inconsistent with existing data.
Implementations§
Source§impl SetResult
impl SetResult
Sourcepub fn to_error_status(&self) -> ErrorStatus
pub fn to_error_status(&self) -> ErrorStatus
Convert to an ErrorStatus code.