pub enum DeepinfraClientBuilderError {
ReqwestError(Error),
InvalidHeaderValue(InvalidHeaderValue),
}Expand description
Errors that can occur when building a DeepinfraClient.
Variants§
ReqwestError(Error)
Indicates that building the HTTP client failed.
InvalidHeaderValue(InvalidHeaderValue)
Indicates that an invalid header value was provided.
Trait Implementations§
Source§impl Debug for DeepinfraClientBuilderError
impl Debug for DeepinfraClientBuilderError
Source§impl Error for DeepinfraClientBuilderError
impl Error for DeepinfraClientBuilderError
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 DeepinfraClientBuilderError
impl From<Error> for DeepinfraClientBuilderError
Source§impl From<InvalidHeaderValue> for DeepinfraClientBuilderError
impl From<InvalidHeaderValue> for DeepinfraClientBuilderError
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeepinfraClientBuilderError
impl !RefUnwindSafe for DeepinfraClientBuilderError
impl Send for DeepinfraClientBuilderError
impl Sync for DeepinfraClientBuilderError
impl Unpin for DeepinfraClientBuilderError
impl UnsafeUnpin for DeepinfraClientBuilderError
impl !UnwindSafe for DeepinfraClientBuilderError
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