#[non_exhaustive]pub enum TranscriptErrorHandlingPolicy {
RevertTranscript,
PreserveTranscript,
}Expand description
How a session repairs its transcript after a failed request (Foundation Models 27).
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.
RevertTranscript
Remove the failed request from the transcript.
PreserveTranscript
Keep the failed request in the transcript.
Trait Implementations§
impl Copy for TranscriptErrorHandlingPolicy
impl Eq for TranscriptErrorHandlingPolicy
impl StructuralPartialEq for TranscriptErrorHandlingPolicy
Auto Trait Implementations§
impl Freeze for TranscriptErrorHandlingPolicy
impl RefUnwindSafe for TranscriptErrorHandlingPolicy
impl Send for TranscriptErrorHandlingPolicy
impl Sync for TranscriptErrorHandlingPolicy
impl Unpin for TranscriptErrorHandlingPolicy
impl UnsafeUnpin for TranscriptErrorHandlingPolicy
impl UnwindSafe for TranscriptErrorHandlingPolicy
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