This reference describes unreleased code on main; no release documents it yet.

rlmesh::ModelErrorCode

enumPreviewuse rlmesh::ModelErrorCode;[source]

Classifies a ModelError reported by a model.

enum ModelErrorCode

The text form (ModelErrorCode::as_str, Display) is the wire code of the ModelException.

Unspecified

variant[source]
Unspecified

No specific code was provided.

InvalidRequest

variant[source]
InvalidRequest

The request was invalid.

NotConfigured

variant[source]
NotConfigured

The route was not configured.

Busy

variant[source]
Busy

The model is busy with another request.

Unsupported

variant[source]
Unsupported

A well-formed request for a feature the peer does not support.

Internal

variant[source]
Internal

An internal model error; every authored model failure carries it.

Cancelled

variant[source]
Cancelled

The operation was cancelled.

Closed

variant[source]
Closed

The model or route is closed.

as_str

method[source]
fn as_str(self) -> &'static str

The 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