pub enum V1ClientError {
Http(Error),
JsonRpc {
code: i32,
message: String,
data: Option<Value>,
},
VersionNotSupported {
requested: String,
supported: Vec<String>,
},
Serde(Error),
UnexpectedStatus {
status: u16,
body: String,
},
}Available on crate features
server and a2a-v1 only.Expand description
Error returned by the v1 client.
Variants§
Http(Error)
HTTP transport error.
JsonRpc
JSON-RPC error returned by the server.
VersionNotSupported
Version negotiation failed — server does not support requested version.
Serde(Error)
Serialization/deserialization error.
UnexpectedStatus
The server returned an unexpected HTTP status.
Trait Implementations§
Source§impl Debug for V1ClientError
impl Debug for V1ClientError
Source§impl Display for V1ClientError
impl Display for V1ClientError
Source§impl Error for V1ClientError
impl Error for V1ClientError
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 V1ClientError
impl From<Error> for V1ClientError
Source§fn from(source: Error) -> V1ClientError
fn from(source: Error) -> V1ClientError
Converts to this type from the input type.
Source§impl From<Error> for V1ClientError
impl From<Error> for V1ClientError
Source§fn from(source: Error) -> V1ClientError
fn from(source: Error) -> V1ClientError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for V1ClientError
impl !RefUnwindSafe for V1ClientError
impl Send for V1ClientError
impl Sync for V1ClientError
impl Unpin for V1ClientError
impl UnsafeUnpin for V1ClientError
impl !UnwindSafe for V1ClientError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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