pub enum ClientError {
Embedding(EmbeddingError),
Vector(VectorError),
Store(StoreError),
Jobs(JobsError),
Llm(LlmError),
Migration(MigrationError),
Database(DbErr),
ReservedMetadataKey {
key: String,
},
Nli(String),
NotCorrectable {
pid: String,
reason: String,
},
}Expand description
Failure modes for crate::client::Client construction and operations.
Variants§
Embedding(EmbeddingError)
Vector(VectorError)
Store(StoreError)
Jobs(JobsError)
Llm(LlmError)
Migration(MigrationError)
Database(DbErr)
ReservedMetadataKey
Nli(String)
NLI classifier initialization failed (epic 0011).
NotCorrectable
Feedback targeted a memory that cannot be corrected (epic 0011).
Feedback corrects a wrong extraction, so its target must be a
semantic row derived from an episodic source. An episodic target
(correct it via crate::client::Client::edit instead) or a semantic
row with no source_pid cannot be reprocessed.
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Error for ClientError
impl Error for ClientError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DbErr> for ClientError
impl From<DbErr> for ClientError
Source§impl From<EmbeddingError> for ClientError
impl From<EmbeddingError> for ClientError
Source§fn from(source: EmbeddingError) -> Self
fn from(source: EmbeddingError) -> Self
Converts to this type from the input type.
Source§impl From<JobsError> for ClientError
impl From<JobsError> for ClientError
Source§impl From<LlmError> for ClientError
impl From<LlmError> for ClientError
Source§impl From<MigrationError> for ClientError
impl From<MigrationError> for ClientError
Source§fn from(source: MigrationError) -> Self
fn from(source: MigrationError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for ClientError
impl From<StoreError> for ClientError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<VectorError> for ClientError
impl From<VectorError> for ClientError
Source§fn from(source: VectorError) -> Self
fn from(source: VectorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ClientError
impl !UnwindSafe for ClientError
impl Freeze for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnsafeUnpin for ClientError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.