pub enum DialError {
InvalidAddress {
addr: String,
source: InvalidUri,
},
Tls(String),
Connect(ConnectError),
}Expand description
Errors an agent dial can produce.
Variants§
InvalidAddress
Could not parse the configured agent address as a URI.
Fields
source: InvalidUriThe underlying URI parse error.
Tls(String)
Building the TLS client for an https:// endpoint failed (e.g. no
process-default crypto provider). The dial fails closed rather than
silently downgrading to plaintext.
Connect(ConnectError)
Connect-level error from the AgentService stream.
Implementations§
Source§impl DialError
impl DialError
Sourcepub const fn code(&self) -> Option<ErrorCode>
pub const fn code(&self) -> Option<ErrorCode>
The Connect error code, when this is a transport-level Connect error
(None for local address/TLS-setup failures).
Sourcepub const fn is_retryable(&self) -> bool
pub const fn is_retryable(&self) -> bool
Whether retrying the call could plausibly succeed. Only transient
transport conditions are retryable; terminal codes
(InvalidArgument, Unauthenticated, NotFound, …) and local
address/TLS failures are not. Edges use this to decide whether to ask
the source platform to redeliver (retryable) or to drop / 4xx
(terminal — redelivery would loop forever).
Trait Implementations§
Source§impl Error for DialError
impl Error for DialError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ConnectError> for DialError
impl From<ConnectError> for DialError
Source§fn from(source: ConnectError) -> Self
fn from(source: ConnectError) -> Self
Auto Trait Implementations§
impl Freeze for DialError
impl RefUnwindSafe for DialError
impl Send for DialError
impl Sync for DialError
impl Unpin for DialError
impl UnsafeUnpin for DialError
impl UnwindSafe for DialError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
T in a tonic::Request