pub enum PromptCacheError {
Policy(CachePolicyError),
UnsupportedSchema(u32),
Malformed(String),
Incompatible(String),
PrefixIdentityMismatch,
}Expand description
Invalid reusable prompt-cache identity, schema, or catalog.
Variants§
Policy(CachePolicyError)
A layer or state policy is invalid.
UnsupportedSchema(u32)
The persistence schema version is unsupported.
Malformed(String)
The portable manifest structure is malformed.
Incompatible(String)
The prepared model or caller identity differs from the producer.
PrefixIdentityMismatch
Exact prefix IDs differ from the persisted identity.
Trait Implementations§
Source§impl Clone for PromptCacheError
impl Clone for PromptCacheError
Source§fn clone(&self) -> PromptCacheError
fn clone(&self) -> PromptCacheError
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 PromptCacheError
impl Debug for PromptCacheError
Source§impl Display for PromptCacheError
impl Display for PromptCacheError
impl Eq for PromptCacheError
Source§impl Error for PromptCacheError
impl Error for PromptCacheError
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<CachePolicyError> for PromptCacheError
impl From<CachePolicyError> for PromptCacheError
Source§fn from(source: CachePolicyError) -> Self
fn from(source: CachePolicyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PromptCacheError
impl PartialEq for PromptCacheError
impl StructuralPartialEq for PromptCacheError
Auto Trait Implementations§
impl Freeze for PromptCacheError
impl RefUnwindSafe for PromptCacheError
impl Send for PromptCacheError
impl Sync for PromptCacheError
impl Unpin for PromptCacheError
impl UnsafeUnpin for PromptCacheError
impl UnwindSafe for PromptCacheError
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