pub enum CompactionSampleError {
NothingToCompact,
EmptyResponse,
Transport {
message: String,
deterministic: bool,
},
}Expand description
Error from a compaction sampling call.
Variants§
NothingToCompact
Nothing to compact (empty input).
EmptyResponse
The model returned no usable text.
Transport
A transport error. deterministic flags whether retrying could help.
Trait Implementations§
Source§impl Debug for CompactionSampleError
impl Debug for CompactionSampleError
Source§impl Display for CompactionSampleError
impl Display for CompactionSampleError
Source§impl Error for CompactionSampleError
impl Error for CompactionSampleError
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()
Auto Trait Implementations§
impl Freeze for CompactionSampleError
impl RefUnwindSafe for CompactionSampleError
impl Send for CompactionSampleError
impl Sync for CompactionSampleError
impl Unpin for CompactionSampleError
impl UnsafeUnpin for CompactionSampleError
impl UnwindSafe for CompactionSampleError
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