pub enum ContextGovernorError {
EmptyMessages,
Serialization(Error),
Io(Error),
ReceiptNotFound(String),
BudgetExceeded {
target_tokens: usize,
minimum_required_tokens: usize,
},
}Variants§
Trait Implementations§
Source§impl Debug for ContextGovernorError
impl Debug for ContextGovernorError
Source§impl Display for ContextGovernorError
impl Display for ContextGovernorError
Source§impl Error for ContextGovernorError
impl Error for ContextGovernorError
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<Error> for ContextGovernorError
impl From<Error> for ContextGovernorError
Auto Trait Implementations§
impl !RefUnwindSafe for ContextGovernorError
impl !UnwindSafe for ContextGovernorError
impl Freeze for ContextGovernorError
impl Send for ContextGovernorError
impl Sync for ContextGovernorError
impl Unpin for ContextGovernorError
impl UnsafeUnpin for ContextGovernorError
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