#[non_exhaustive]pub enum ModelRequestLimitsError {
ZeroInputTokens,
ZeroOutputTokens,
ZeroContentBytes,
ContentBytesAboveHardMaximum {
maximum: ByteCount,
actual: ByteCount,
},
ContextTokensOverflow,
}Expand description
Invalid finite request limits.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ZeroInputTokens
No input-token capacity was available.
ZeroOutputTokens
No generated token could be returned.
ZeroContentBytes
No request content could be supplied.
ContentBytesAboveHardMaximum
The caller tried to widen the immutable content resource bound.
ContextTokensOverflow
Input and output token ceilings could not form one total context bound.
Trait Implementations§
Source§impl Clone for ModelRequestLimitsError
impl Clone for ModelRequestLimitsError
Source§impl Debug for ModelRequestLimitsError
impl Debug for ModelRequestLimitsError
Source§impl Display for ModelRequestLimitsError
impl Display for ModelRequestLimitsError
impl Eq for ModelRequestLimitsError
Source§impl Error for ModelRequestLimitsError
impl Error for ModelRequestLimitsError
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 PartialEq for ModelRequestLimitsError
impl PartialEq for ModelRequestLimitsError
impl StructuralPartialEq for ModelRequestLimitsError
Auto Trait Implementations§
impl Forget for ModelRequestLimitsError
impl Freeze for ModelRequestLimitsError
impl Move for ModelRequestLimitsError
impl RefUnwindSafe for ModelRequestLimitsError
impl Send for ModelRequestLimitsError
impl Sync for ModelRequestLimitsError
impl Unpin for ModelRequestLimitsError
impl UnsafeUnpin for ModelRequestLimitsError
impl UnwindSafe for ModelRequestLimitsError
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