pub enum CubeError {
Error {
status: StatusCode,
reason: &'static str,
text: String,
source: Error,
},
Raw(Error),
Middleware(Error),
}
Expand description
Errors representing failed interactions with CUBE.
Variants§
Error
Error response with an explanation from CUBE.
Raw(Error)
Error response without explanation from CUBE (badness 100000).
Middleware(Error)
Error from reqwest middleware function.
Trait Implementations§
Source§impl Error for CubeError
impl Error for CubeError
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<CubeError> for FileIOError
impl From<CubeError> for FileIOError
Source§impl From<CubeError> for GetOnlyError
impl From<CubeError> for GetOnlyError
Auto Trait Implementations§
impl Freeze for CubeError
impl !RefUnwindSafe for CubeError
impl Send for CubeError
impl Sync for CubeError
impl Unpin for CubeError
impl !UnwindSafe for CubeError
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