rlmesh::ModelErrorCode
Classifies a ModelError reported by a model.
enum ModelErrorCodeThe text form (ModelErrorCode::as_str, Display) is the wire code of
the ModelException.
Variants
- UnspecifiedNo specific code was provided.
- InvalidRequestThe request was invalid.
- NotConfiguredThe route was not configured.
- BusyThe model is busy with another request.
- UnsupportedA well-formed request for a feature the peer does not support.
- InternalAn internal model error; every authored model failure carries it.
- CancelledThe operation was cancelled.
- ClosedThe model or route is closed.
Methods
Unspecified
variant[source]UnspecifiedNo specific code was provided.
InvalidRequest
variant[source]InvalidRequestThe request was invalid.
NotConfigured
variant[source]NotConfiguredThe route was not configured.
Busy
variant[source]BusyThe model 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 model error; every authored model failure carries it.
Cancelled
variant[source]CancelledThe operation was cancelled.
Closed
variant[source]ClosedThe model or route is closed.
as_str
method[source]fn as_str(self) -> &'static strThe code’s wire spelling ("INVALID_REQUEST").
Trait implementations
- impl Debug for ModelErrorCode
- impl Clone for ModelErrorCode
- impl Copy for ModelErrorCode
- impl StructuralPartialEq for ModelErrorCode
- impl PartialEq for ModelErrorCode
- impl Eq for ModelErrorCode
- impl Hash for ModelErrorCode
- impl Display for ModelErrorCode