pub enum ErrorKind {
DataTypeParsingFailed {
filename: PathBuf,
},
FileReadingFailed {
path: PathBuf,
},
MultipartEncodingFailed {
field: Option<String>,
},
RequestFailed,
ResponseFailed,
UrlParsingFailed {
url: String,
},
}Expand description
Error kinds for trackme-backends.
Variants§
DataTypeParsingFailed
Failed to parse the data type from a filename.
FileReadingFailed
Failed to read a file.
MultipartEncodingFailed
Failed to encode a multipart message.
RequestFailed
Failed to perform an API request.
ResponseFailed
Failed to read an API response.
UrlParsingFailed
Failed to parse a URL.
Trait Implementations§
Source§impl Ord for ErrorKind
impl Ord for ErrorKind
Source§impl PartialOrd for ErrorKind
impl PartialOrd for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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