pub struct A2aClientError { /* private fields */ }Expand description
Public-safe strict-client failure. Remote text and response bodies are not retained because they may contain secrets or tenant data.
Implementations§
Source§impl A2aClientError
impl A2aClientError
Sourcepub const fn kind(&self) -> A2aClientErrorKind
pub const fn kind(&self) -> A2aClientErrorKind
Returns the stable public classification.
Sourcepub const fn was_dispatched(&self) -> bool
pub const fn was_dispatched(&self) -> bool
Returns whether request dispatch had begun before the failure.
Sourcepub const fn remote_code(&self) -> Option<i32>
pub const fn remote_code(&self) -> Option<i32>
Returns an A2A/JSON-RPC error code without remote text.
Sourcepub const fn http_status(&self) -> Option<u16>
pub const fn http_status(&self) -> Option<u16>
Returns the HTTP status without response content.
Returns the credential-source outcome without credential contents.
Trait Implementations§
Source§impl Clone for A2aClientError
impl Clone for A2aClientError
Source§impl Debug for A2aClientError
impl Debug for A2aClientError
Source§impl Display for A2aClientError
impl Display for A2aClientError
Source§impl Error for A2aClientError
impl Error for A2aClientError
1.30.0 · 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 Forget for A2aClientError
impl Freeze for A2aClientError
impl Move for A2aClientError
impl RefUnwindSafe for A2aClientError
impl Send for A2aClientError
impl Sync for A2aClientError
impl Unpin for A2aClientError
impl UnsafeUnpin for A2aClientError
impl UnwindSafe for A2aClientError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request