pub enum McpStdioSmokeError {
Spawn {
source: Error,
},
MissingPipe(&'static str),
Write {
source: Error,
},
Flush {
source: Error,
},
Read {
source: Error,
},
Eof {
method: String,
status: ProcessStatus,
stderr: StderrSnapshot,
},
InvalidJson {
method: String,
line: String,
source: Error,
},
Rpc {
method: String,
error: Value,
},
MissingResult {
method: String,
response: Value,
},
UnexpectedResponse {
method: String,
id: u64,
response: Value,
},
Wait {
source: Error,
},
Kill {
source: Error,
},
}Expand description
Error returned by the newline-delimited JSON-RPC stdio smoke client.
Variants§
Spawn
MissingPipe(&'static str)
Write
Flush
Read
Eof
InvalidJson
Rpc
MissingResult
UnexpectedResponse
Wait
Kill
Trait Implementations§
Source§impl Debug for McpStdioSmokeError
impl Debug for McpStdioSmokeError
Source§impl Display for McpStdioSmokeError
impl Display for McpStdioSmokeError
Source§impl Error for McpStdioSmokeError
impl Error for McpStdioSmokeError
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 !RefUnwindSafe for McpStdioSmokeError
impl !UnwindSafe for McpStdioSmokeError
impl Freeze for McpStdioSmokeError
impl Send for McpStdioSmokeError
impl Sync for McpStdioSmokeError
impl Unpin for McpStdioSmokeError
impl UnsafeUnpin for McpStdioSmokeError
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