pub enum CallToolError {
Send(ServiceError),
Call(ServiceError),
UnsupportedInput {
server: String,
},
SerializeResponse {
server: String,
source: Error,
},
Aborted {
server: String,
reason: AbortReason,
timeout: Duration,
},
Task {
server: String,
task_id: String,
reason: Box<TaskErrorReason>,
},
UnsupportedResponse {
server: String,
},
Unavailable {
message: String,
},
}Variants§
Send(ServiceError)
Call(ServiceError)
UnsupportedInput
SerializeResponse
Aborted
Task
UnsupportedResponse
Trait Implementations§
Source§impl Debug for CallToolError
impl Debug for CallToolError
Source§impl Display for CallToolError
impl Display for CallToolError
Source§impl Error for CallToolError
impl Error for CallToolError
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 CallToolError
impl !UnwindSafe for CallToolError
impl Freeze for CallToolError
impl Send for CallToolError
impl Sync for CallToolError
impl Unpin for CallToolError
impl UnsafeUnpin for CallToolError
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