pub enum BatchAddError {
InsufficientSpace(usize),
EmptyBuffer,
}
Expand description
Errors that can occur when adding a token to a batch.
Variants§
InsufficientSpace(usize)
There was not enough space in the batch to add the token.
EmptyBuffer
Empty buffer is provided for LlamaBatch::get_one
Trait Implementations§
Source§impl Debug for BatchAddError
impl Debug for BatchAddError
Source§impl Display for BatchAddError
impl Display for BatchAddError
Source§impl Error for BatchAddError
impl Error for BatchAddError
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()
Source§impl From<BatchAddError> for LLamaCppError
impl From<BatchAddError> for LLamaCppError
Source§fn from(source: BatchAddError) -> Self
fn from(source: BatchAddError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BatchAddError
impl PartialEq for BatchAddError
impl Eq for BatchAddError
impl StructuralPartialEq for BatchAddError
Auto Trait Implementations§
impl Freeze for BatchAddError
impl RefUnwindSafe for BatchAddError
impl Send for BatchAddError
impl Sync for BatchAddError
impl Unpin for BatchAddError
impl UnwindSafe for BatchAddError
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