#[non_exhaustive]pub enum ModelStreamChunkError {
Empty,
TooLong {
maximum: usize,
actual: usize,
},
DisallowedCodePoint {
byte_index: usize,
},
}Expand description
Invalid semantic model-stream fragment.
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.
Empty
The fragment contained no bytes.
TooLong
The fragment exceeded its immutable byte ceiling.
DisallowedCodePoint
The fragment contained a control or Unicode noncharacter.
Trait Implementations§
Source§impl Clone for ModelStreamChunkError
impl Clone for ModelStreamChunkError
Source§impl Debug for ModelStreamChunkError
impl Debug for ModelStreamChunkError
Source§impl Display for ModelStreamChunkError
impl Display for ModelStreamChunkError
impl Eq for ModelStreamChunkError
Source§impl Error for ModelStreamChunkError
impl Error for ModelStreamChunkError
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 PartialEq for ModelStreamChunkError
impl PartialEq for ModelStreamChunkError
impl StructuralPartialEq for ModelStreamChunkError
Auto Trait Implementations§
impl Forget for ModelStreamChunkError
impl Freeze for ModelStreamChunkError
impl Move for ModelStreamChunkError
impl RefUnwindSafe for ModelStreamChunkError
impl Send for ModelStreamChunkError
impl Sync for ModelStreamChunkError
impl Unpin for ModelStreamChunkError
impl UnsafeUnpin for ModelStreamChunkError
impl UnwindSafe for ModelStreamChunkError
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