[−][src]Enum bindle::client::ClientError
Describes the various errors that can be returned from the client
Variants
InvalidURL(ParseError)
Indicates that the given URL is invalid, contains the underlying parsing error
InvalidConfig(String)
Invalid configuration was given to the client
Io(Error)
IO errors from interacting with the file system
InvalidToml(Error)
Invalid TOML parsing that can occur when loading an invoice or label from disk
TomlSerializationError(Error)
Invalid TOML serialization that can occur when serializing an object to a request
HttpClientError(Error)
There was a problem with the http client. This is likely not a user issue. Contains the underlying error
An invalid ID was given. Returns the underlying parse error
The invoice was not found. Note that this does not necessarily mean it doesn't exist. It could also be hidden because it is yanked or due to user permissions
The parcel was not found.
The invoice already exists
The parcel already exists.
The error returned when the request is invalid. Contains the underlying HTTP status code and any message returned from the API
Fields of InvalidRequest
status_code: StatusCode
message: Option<String>
A server error was encountered. Contains an optional message from the server
Invalid credentials were used or user does not have access to the requested resource. This is only valid if the server supports authentication and/or permissions
Other(String)
A catch-all for uncategorized errors. Contains an error message describing the underlying issue
Trait Implementations
impl Debug for ClientError
[src]
impl Display for ClientError
[src]
impl Error for ClientError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ClientError> for ProviderError
[src]
pub fn from(source: ClientError) -> Self
[src]
impl From<Error> for ClientError
[src]
impl From<Error> for ClientError
[src]
impl From<Error> for ClientError
[src]
impl From<Error> for ClientError
[src]
impl From<Infallible> for ClientError
[src]
pub fn from(_: Infallible) -> Self
[src]
impl From<ParseError> for ClientError
[src]
pub fn from(source: ParseError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ClientError
[src]
impl Send for ClientError
[src]
impl Sync for ClientError
[src]
impl Unpin for ClientError
[src]
impl !UnwindSafe for ClientError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,