pub enum ViewUploadError {
NotFound,
InternalServer(Error),
}
Expand description
Errors when trying to view/download an upload
Variants§
Trait Implementations§
Source§impl Debug for ViewUploadError
impl Debug for ViewUploadError
Source§impl Display for ViewUploadError
impl Display for ViewUploadError
Source§impl Error for ViewUploadError
impl Error for ViewUploadError
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 ViewUploadError
impl From<Error> for ViewUploadError
Source§impl From<OpenUploadError> for ViewUploadError
impl From<OpenUploadError> for ViewUploadError
Source§fn from(err: OpenUploadError) -> Self
fn from(err: OpenUploadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ViewUploadError
impl RefUnwindSafe for ViewUploadError
impl Send for ViewUploadError
impl Sync for ViewUploadError
impl Unpin for ViewUploadError
impl UnwindSafe for ViewUploadError
Blanket Implementations§
Source§impl<T> ApiErrorExt for T
impl<T> ApiErrorExt for T
Source§fn into_response_with_code(self, code: StatusCode) -> Response
fn into_response_with_code(self, code: StatusCode) -> Response
Consume the error and convert it to a
Response
with the specified
StatusCode
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