pub enum ErrorCodeV2 {
QueueFull,
BackendUnavailable,
InvalidRequest,
FrameTooLarge,
Internal,
AttachmentUnsupported,
ToolCallMalformed,
}Expand description
Re-exports of the v2 wire types per ADR 0015. v2 is shipped as
part of inferd-client 0.2 so consumers building against v2 can
reach the proto types without a separate inferd-proto dep.
v2 error-code taxonomy. Superset of v1’s ErrorCode (kept
independent so the v1 enum stays frozen per ADR 0008).
Variants§
QueueFull
Admission queue full at submit time.
Selected backend errored before or during generation.
InvalidRequest
Request failed validation (bad shape, dangling attachment id, etc.).
FrameTooLarge
Frame exceeded the 64 MiB cap.
Internal
Daemon-side bug or unexpected condition.
AttachmentUnsupported
Backend cannot handle the requested attachment kind / MIME.
ToolCallMalformed
Model emitted a tool-call sequence the daemon couldn’t parse.
Trait Implementations§
Source§impl Clone for ErrorCodeV2
impl Clone for ErrorCodeV2
Source§fn clone(&self) -> ErrorCodeV2
fn clone(&self) -> ErrorCodeV2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorCodeV2
impl Debug for ErrorCodeV2
Source§impl<'de> Deserialize<'de> for ErrorCodeV2
impl<'de> Deserialize<'de> for ErrorCodeV2
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorCodeV2, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorCodeV2, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ErrorCodeV2
impl Hash for ErrorCodeV2
Source§impl PartialEq for ErrorCodeV2
impl PartialEq for ErrorCodeV2
Source§fn eq(&self, other: &ErrorCodeV2) -> bool
fn eq(&self, other: &ErrorCodeV2) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ErrorCodeV2
impl Serialize for ErrorCodeV2
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ErrorCodeV2
impl Eq for ErrorCodeV2
impl StructuralPartialEq for ErrorCodeV2
Auto Trait Implementations§
impl Freeze for ErrorCodeV2
impl RefUnwindSafe for ErrorCodeV2
impl Send for ErrorCodeV2
impl Sync for ErrorCodeV2
impl Unpin for ErrorCodeV2
impl UnsafeUnpin for ErrorCodeV2
impl UnwindSafe for ErrorCodeV2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more