Enum ErrorCode Copy item path Source pub enum ErrorCode {
QueueFull,
BackendUnavailable,
InvalidRequest,
FrameTooLarge,
Internal,
}Expand description Re-exports from inferd-proto so consumers don’t need a separate
inferd-proto dep for the wire types. The proto crate IS the
version-pin contract for protocol compatibility — inferd-client 0.2 always uses inferd-proto 0.2.
Machine-readable error classification carried on error response frames.
See docs/protocol-v1.md §“Response stream” and ADR 0008 for the rationale
behind exposing this distinct from the human-readable message field.
Admission queue full at submit time. Caller may retry immediately or with backoff.
Selected backend errored before or during generation. Caller may retry.
Request failed validation. Caller should not retry without changing the request.
Frame exceeded the 64 MiB cap. Connection is closed.
Daemon-side bug or unexpected condition.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Deserialize this value from the given Serde deserializer.
Read more Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Serialize this value into the given Serde serializer.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.