pub enum BatchError {
Http(Error),
Api(String),
NotFound(String),
Expired,
Serialization(Error),
Failed(String),
Timeout(u64),
}Expand description
Error type for batch operations.
Variants§
Http(Error)
HTTP transport error.
Api(String)
API returned an error message.
NotFound(String)
The requested batch does not exist.
Expired
The batch has expired.
Serialization(Error)
JSON serialization / deserialization error.
Failed(String)
The batch failed and results cannot be retrieved.
Timeout(u64)
Timed out waiting for the batch to complete.
Trait Implementations§
Source§impl Debug for BatchError
impl Debug for BatchError
Source§impl Display for BatchError
impl Display for BatchError
Source§impl Error for BatchError
impl Error for BatchError
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<BatchError> for CoreError
impl From<BatchError> for CoreError
Source§fn from(source: BatchError) -> Self
fn from(source: BatchError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BatchError
impl From<Error> for BatchError
Auto Trait Implementations§
impl !RefUnwindSafe for BatchError
impl !UnwindSafe for BatchError
impl Freeze for BatchError
impl Send for BatchError
impl Sync for BatchError
impl Unpin for BatchError
impl UnsafeUnpin for BatchError
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