pub enum EmbedErrorCode {
QueueFull,
BackendUnavailable,
InvalidRequest,
FrameTooLarge,
Internal,
EmbedUnsupported,
}Expand description
Re-exports of the embed wire types per ADR 0017. Embed lives on
the third inferd socket (separate from v1 and v2); the
proto types are re-exported here so consumers don’t need a separate
inferd-proto dep.
Embed-specific error-code taxonomy.
Superset of v1’s ErrorCode (kept independent so the v1 enum
stays frozen per ADR 0008). The only embed-specific addition is
embed_unsupported, returned in the belt-and-braces case where a
daemon configured with a generation-only backend somehow receives
an embed request (the embed socket should not have been bound in
that configuration — the error is a fail-safe).
Variants§
QueueFull
Admission queue full at submit time.
Selected backend errored before or during embedding.
InvalidRequest
Request failed validation (empty input, unsupported dimensions, unknown task, etc.).
FrameTooLarge
Frame exceeded the 64 MiB cap.
Internal
Daemon-side bug or unexpected condition.
EmbedUnsupported
The active backend doesn’t support embeddings.
Trait Implementations§
Source§impl Clone for EmbedErrorCode
impl Clone for EmbedErrorCode
Source§fn clone(&self) -> EmbedErrorCode
fn clone(&self) -> EmbedErrorCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EmbedErrorCode
impl Debug for EmbedErrorCode
Source§impl<'de> Deserialize<'de> for EmbedErrorCode
impl<'de> Deserialize<'de> for EmbedErrorCode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EmbedErrorCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EmbedErrorCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Hash for EmbedErrorCode
impl Hash for EmbedErrorCode
Source§impl PartialEq for EmbedErrorCode
impl PartialEq for EmbedErrorCode
Source§fn eq(&self, other: &EmbedErrorCode) -> bool
fn eq(&self, other: &EmbedErrorCode) -> bool
self and other values to be equal, and is used by ==.