pub enum ControlledTextGenerationError<B, C>{
Backend(B),
Controller(C),
}Expand description
Failure from either backend execution or portable constraint control.
Variants§
Backend(B)
Backend preparation, execution, sampling, or completion failed.
Controller(C)
Portable constraint filtering or commitment failed.
Trait Implementations§
Source§impl<B, C> Debug for ControlledTextGenerationError<B, C>
impl<B, C> Debug for ControlledTextGenerationError<B, C>
Source§impl<B, C> Display for ControlledTextGenerationError<B, C>
impl<B, C> Display for ControlledTextGenerationError<B, C>
Source§impl<B, C> Error for ControlledTextGenerationError<B, C>
impl<B, C> Error for ControlledTextGenerationError<B, C>
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<B, C> Freeze for ControlledTextGenerationError<B, C>
impl<B, C> RefUnwindSafe for ControlledTextGenerationError<B, C>where
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<B, C> Send for ControlledTextGenerationError<B, C>
impl<B, C> Sync for ControlledTextGenerationError<B, C>
impl<B, C> Unpin for ControlledTextGenerationError<B, C>
impl<B, C> UnsafeUnpin for ControlledTextGenerationError<B, C>where
B: UnsafeUnpin,
C: UnsafeUnpin,
impl<B, C> UnwindSafe for ControlledTextGenerationError<B, C>where
B: UnwindSafe,
C: 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