pub enum EndpointTemplateError {
NotAUrl,
HostMissing,
AlreadyIpAddress,
Inconvertible,
InvalidUserAgent,
InvalidTlsConfig,
}Expand description
Errors that can occur when creating an EndpointTemplate.
Variants§
NotAUrl
Provided value is not a valid URL.
Provided value could not be parsed as a URL.
HostMissing
The URL does not contain a host.
Provided URL does not contain a host that can be resolved with DNS.
AlreadyIpAddress
The URL is already an IP address.
Provided URL is already an IP address, so it cannot be used as a template.
Inconvertible
The URL cannot be converted to an internal type.
tonic’s Endpoint uses its own
type for representing an address and provided
URL (after substituting hostname for an IP address) could not be
converted into it.
InvalidUserAgent
The provided user agent is invalid.
Provided user agent cannot be converted to a HeaderValue and would
cause a failure when building an endpoint.
InvalidTlsConfig
tls only.The provided TLS config is invalid.
Provided TLS config would cause a failure when building an endpoint.
Trait Implementations§
Source§impl Clone for EndpointTemplateError
impl Clone for EndpointTemplateError
Source§fn clone(&self) -> EndpointTemplateError
fn clone(&self) -> EndpointTemplateError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EndpointTemplateError
impl Debug for EndpointTemplateError
Source§impl Display for EndpointTemplateError
impl Display for EndpointTemplateError
Source§impl Error for EndpointTemplateError
impl Error for EndpointTemplateError
1.30.0 · 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
Source§impl Hash for EndpointTemplateError
impl Hash for EndpointTemplateError
Source§impl Ord for EndpointTemplateError
impl Ord for EndpointTemplateError
Source§fn cmp(&self, other: &EndpointTemplateError) -> Ordering
fn cmp(&self, other: &EndpointTemplateError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for EndpointTemplateError
impl PartialEq for EndpointTemplateError
Source§impl PartialOrd for EndpointTemplateError
impl PartialOrd for EndpointTemplateError
impl Copy for EndpointTemplateError
impl Eq for EndpointTemplateError
impl StructuralPartialEq for EndpointTemplateError
Auto Trait Implementations§
impl Freeze for EndpointTemplateError
impl RefUnwindSafe for EndpointTemplateError
impl Send for EndpointTemplateError
impl Sync for EndpointTemplateError
impl Unpin for EndpointTemplateError
impl UnwindSafe for EndpointTemplateError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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