pub enum RawError {
Surf(Error),
Git(Error),
Storage(Error),
Repository(RepositoryError),
Headers(InvalidHeaderValue),
SurfFile(File),
NotFound,
}Expand description
Errors relating to the /raw route.
Variants§
Surf(Error)
Surf error.
Git(Error)
Git error.
Storage(Error)
Radicle Storage error.
Repository(RepositoryError)
Repository error.
Headers(InvalidHeaderValue)
Http Headers error.
SurfFile(File)
Surf file error.
NotFound
The entity was not found.
Implementations§
Trait Implementations§
Source§impl Error for RawError
impl Error for RawError
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<InvalidHeaderValue> for RawError
impl From<InvalidHeaderValue> for RawError
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryError> for RawError
impl From<RepositoryError> for RawError
Source§fn from(source: RepositoryError) -> Self
fn from(source: RepositoryError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for RawError
impl IntoResponse for RawError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for RawError
impl !RefUnwindSafe for RawError
impl Send for RawError
impl Sync for RawError
impl Unpin for RawError
impl !UnwindSafe for RawError
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