pub enum ClassifiedResponse<FailureClass, ClassifyEos> {
Ready(Result<(), FailureClass>),
RequiresEos(ClassifyEos),
}
Expand description
Result of doing a classification.
Variants§
Ready(Result<(), FailureClass>)
The response was able to be classified immediately.
RequiresEos(ClassifyEos)
We have to wait until the end of a streaming response to classify it.
Trait Implementations§
Auto Trait Implementations§
impl<FailureClass, ClassifyEos> Freeze for ClassifiedResponse<FailureClass, ClassifyEos>
impl<FailureClass, ClassifyEos> RefUnwindSafe for ClassifiedResponse<FailureClass, ClassifyEos>where
ClassifyEos: RefUnwindSafe,
FailureClass: RefUnwindSafe,
impl<FailureClass, ClassifyEos> Send for ClassifiedResponse<FailureClass, ClassifyEos>
impl<FailureClass, ClassifyEos> Sync for ClassifiedResponse<FailureClass, ClassifyEos>
impl<FailureClass, ClassifyEos> Unpin for ClassifiedResponse<FailureClass, ClassifyEos>
impl<FailureClass, ClassifyEos> UnwindSafe for ClassifiedResponse<FailureClass, ClassifyEos>where
ClassifyEos: UnwindSafe,
FailureClass: UnwindSafe,
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