pub enum StreamToStdoutError {
Run(PromptError),
Io(Error),
Incomplete,
}Expand description
Why stream_to_stdout returned no response, or why
ChatBot::run stopped.
Variants§
Run(PromptError)
The run failed.
Io(Error)
Writing to stdout failed.
Incomplete
The stream ended without a final response.
Trait Implementations§
Source§impl Debug for StreamToStdoutError
impl Debug for StreamToStdoutError
Source§impl Display for StreamToStdoutError
impl Display for StreamToStdoutError
Source§impl Error for StreamToStdoutError
impl Error for StreamToStdoutError
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<Error> for StreamToStdoutError
impl From<Error> for StreamToStdoutError
Source§impl From<PromptError> for StreamToStdoutError
impl From<PromptError> for StreamToStdoutError
Source§fn from(source: PromptError) -> Self
fn from(source: PromptError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StreamToStdoutError
impl !UnwindSafe for StreamToStdoutError
impl Forget for StreamToStdoutError
impl Freeze for StreamToStdoutError
impl Move for StreamToStdoutError
impl Send for StreamToStdoutError
impl Sync for StreamToStdoutError
impl Unpin for StreamToStdoutError
impl UnsafeUnpin for StreamToStdoutError
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