pub enum Estimate {
Bounded {
passes: u64,
input_tokens: u64,
cost_nanos: u64,
},
Unbounded,
}Expand description
An item’s estimate.
Variants§
Bounded
An upper bound on the item’s input cost.
Fields
Unbounded
The state’s byte bound reaches a pass’s token budget, so the number
of passes, and with it the cost, has no upper bound. Against a
ceiling the item is cost_exceeded; with no ceiling it is sent.
Trait Implementations§
impl Copy for Estimate
impl Eq for Estimate
impl StructuralPartialEq for Estimate
Auto Trait Implementations§
impl Freeze for Estimate
impl RefUnwindSafe for Estimate
impl Send for Estimate
impl Sync for Estimate
impl Unpin for Estimate
impl UnsafeUnpin for Estimate
impl UnwindSafe for Estimate
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