pub enum MultimodalPreparationFailure<B, T>{
Backend(B),
Text(T),
}Expand description
Failure from backend preprocessing or backend-requested text encoding.
Variants§
Backend(B)
The selected backend rejected or failed media preprocessing.
Text(T)
The facade tokenizer failed on backend-required framing text.
Trait Implementations§
Source§impl<B, T> Debug for MultimodalPreparationFailure<B, T>
impl<B, T> Debug for MultimodalPreparationFailure<B, T>
Source§impl<B, T> Display for MultimodalPreparationFailure<B, T>
impl<B, T> Display for MultimodalPreparationFailure<B, T>
Source§impl<B, T> Error for MultimodalPreparationFailure<B, T>
impl<B, T> Error for MultimodalPreparationFailure<B, T>
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, T> Freeze for MultimodalPreparationFailure<B, T>
impl<B, T> RefUnwindSafe for MultimodalPreparationFailure<B, T>where
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<B, T> Send for MultimodalPreparationFailure<B, T>
impl<B, T> Sync for MultimodalPreparationFailure<B, T>
impl<B, T> Unpin for MultimodalPreparationFailure<B, T>
impl<B, T> UnsafeUnpin for MultimodalPreparationFailure<B, T>where
B: UnsafeUnpin,
T: UnsafeUnpin,
impl<B, T> UnwindSafe for MultimodalPreparationFailure<B, T>where
B: UnwindSafe,
T: 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