pub enum DeepstoreError {
Authentication(String),
NotFound(String),
InvalidRequest(String),
ServerError(String),
Network(String),
Parse(String),
Configuration(String),
Stream(String),
}Expand description
DeepStore client errors
Variants§
Authentication(String)
Authentication failed (401/403)
NotFound(String)
Resource not found (404)
InvalidRequest(String)
Invalid request (400)
ServerError(String)
Server error (500+)
Network(String)
Network/HTTP error
Parse(String)
JSON parsing error
Configuration(String)
Configuration error
Stream(String)
Streaming error
Implementations§
Source§impl DeepstoreError
impl DeepstoreError
Sourcepub fn from_response(status: StatusCode, body: &str) -> Self
pub fn from_response(status: StatusCode, body: &str) -> Self
Create error from HTTP status and response body
Trait Implementations§
Source§impl Debug for DeepstoreError
impl Debug for DeepstoreError
Source§impl Display for DeepstoreError
impl Display for DeepstoreError
Source§impl Error for DeepstoreError
impl Error for DeepstoreError
1.30.0 · 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 DeepstoreError
impl From<Error> for DeepstoreError
Auto Trait Implementations§
impl Freeze for DeepstoreError
impl RefUnwindSafe for DeepstoreError
impl Send for DeepstoreError
impl Sync for DeepstoreError
impl Unpin for DeepstoreError
impl UnsafeUnpin for DeepstoreError
impl UnwindSafe for DeepstoreError
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.