Enum hyperdriver::client::conn::connection::UriError
source · pub enum UriError {
InvalidUri(InvalidUri),
MissingScheme(Uri),
}Available on crate feature
client only.Expand description
The URI used for connecting to a server is invalid.
Usually, this means that the URI is missing a scheme or authority, but it can also mean that the connection string could not be parsed.
Variants§
InvalidUri(InvalidUri)
The connection string could not be parsed.
MissingScheme(Uri)
The URI is missing a scheme.
Trait Implementations§
source§impl Error for UriError
impl Error for UriError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<InvalidUri> for UriError
impl From<InvalidUri> for UriError
source§fn from(source: InvalidUri) -> Self
fn from(source: InvalidUri) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for UriError
impl RefUnwindSafe for UriError
impl Send for UriError
impl Sync for UriError
impl Unpin for UriError
impl UnwindSafe for UriError
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
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.