pub enum EstimateError {
UnknownModel(UnknownModel),
}Expand description
Errors returned by CostCap::estimate when the model is unknown
or token counts are negative. (Negative counts are not representable
with u64, but the model lookup can still fail.)
Variants§
UnknownModel(UnknownModel)
Trait Implementations§
Source§impl Clone for EstimateError
impl Clone for EstimateError
Source§fn clone(&self) -> EstimateError
fn clone(&self) -> EstimateError
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 EstimateError
impl Debug for EstimateError
Source§impl Display for EstimateError
impl Display for EstimateError
Source§impl Error for EstimateError
impl Error for EstimateError
1.30.0 · 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<EstimateError> for CheckError
impl From<EstimateError> for CheckError
Source§fn from(e: EstimateError) -> Self
fn from(e: EstimateError) -> Self
Converts to this type from the input type.
Source§impl From<UnknownModel> for EstimateError
impl From<UnknownModel> for EstimateError
Source§fn from(e: UnknownModel) -> Self
fn from(e: UnknownModel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EstimateError
impl PartialEq for EstimateError
Source§fn eq(&self, other: &EstimateError) -> bool
fn eq(&self, other: &EstimateError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EstimateError
Auto Trait Implementations§
impl Freeze for EstimateError
impl RefUnwindSafe for EstimateError
impl Send for EstimateError
impl Sync for EstimateError
impl Unpin for EstimateError
impl UnsafeUnpin for EstimateError
impl UnwindSafe for EstimateError
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