rlmesh::ErrorCode
Classifies an EnvironmentError reported by an environment.
enum ErrorCodeThe text form (ErrorCode::as_str, Display) is the wire code of the
EnvironmentException.
Variants
- UnspecifiedNo specific code was provided.
- TimeoutThe operation exceeded its deadline.
- InvalidActionThe submitted action was invalid for the action space.
- NotReadyThe environment is not ready to serve the request yet.
- BusyThe environment is busy with another request.
- UnsupportedA well-formed request for a feature the peer does not support.
- InternalAn internal environment error; every authored env failure carries it.
- CrashedThe environment process crashed.
- CancelledThe operation was cancelled.
- ClosedThe environment (or session) is closed.
Methods
Unspecified
variant[source]UnspecifiedNo specific code was provided.
Timeout
variant[source]TimeoutThe operation exceeded its deadline.
InvalidAction
variant[source]InvalidActionThe submitted action was invalid for the action space.
NotReady
variant[source]NotReadyThe environment is not ready to serve the request yet.
Busy
variant[source]BusyThe environment is busy with another request.
Unsupported
variant[source]UnsupportedA well-formed request for a feature the peer does not support.
Internal
variant[source]InternalAn internal environment error; every authored env failure carries it.
Crashed
variant[source]CrashedThe environment process crashed.
Cancelled
variant[source]CancelledThe operation was cancelled.
Closed
variant[source]ClosedThe environment (or session) is closed.
as_str
method[source]fn as_str(self) -> &'static strThe code’s wire spelling ("INVALID_ACTION").
Trait implementations
- impl Debug for ErrorCode
- impl Clone for ErrorCode
- impl Copy for ErrorCode
- impl StructuralPartialEq for ErrorCode
- impl PartialEq for ErrorCode
- impl Eq for ErrorCode
- impl Hash for ErrorCode
- impl Display for ErrorCode