pub enum ExecStreamError {
Codex(CodexError),
Parse {
line: String,
source: Error,
},
Normalize {
line: String,
message: String,
},
IdleTimeout {
idle_for: Duration,
},
ChannelClosed,
}Expand description
Errors that may occur while consuming the JSONL stream.
Variants§
Trait Implementations§
Source§impl Debug for ExecStreamError
impl Debug for ExecStreamError
Source§impl Display for ExecStreamError
impl Display for ExecStreamError
Source§impl Error for ExecStreamError
impl Error for ExecStreamError
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<CodexError> for ExecStreamError
impl From<CodexError> for ExecStreamError
Source§fn from(source: CodexError) -> Self
fn from(source: CodexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExecStreamError
impl !RefUnwindSafe for ExecStreamError
impl Send for ExecStreamError
impl Sync for ExecStreamError
impl Unpin for ExecStreamError
impl UnsafeUnpin for ExecStreamError
impl !UnwindSafe for ExecStreamError
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