pub enum EnigmaRelayError {
InvalidInput(String),
RateLimited,
Duplicate,
QuotaExceeded,
NotFound,
StorageError(String),
Config(String),
Tls(String),
Disabled(String),
Internal(String),
}Variants§
InvalidInput(String)
RateLimited
Duplicate
QuotaExceeded
NotFound
StorageError(String)
Config(String)
Tls(String)
Disabled(String)
Internal(String)
Implementations§
Source§impl EnigmaRelayError
impl EnigmaRelayError
pub fn into_response(self) -> ErrorResponse
Trait Implementations§
Source§impl Clone for EnigmaRelayError
impl Clone for EnigmaRelayError
Source§fn clone(&self) -> EnigmaRelayError
fn clone(&self) -> EnigmaRelayError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnigmaRelayError
impl Debug for EnigmaRelayError
Source§impl Display for EnigmaRelayError
impl Display for EnigmaRelayError
Source§impl Error for EnigmaRelayError
impl Error for EnigmaRelayError
1.30.0 · 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 EnigmaRelayError
impl From<Error> for EnigmaRelayError
Source§impl From<Error> for EnigmaRelayError
impl From<Error> for EnigmaRelayError
Source§impl From<Error> for EnigmaRelayError
Available on crate feature persistence only.
impl From<Error> for EnigmaRelayError
Available on crate feature
persistence only.Source§impl ResponseError for EnigmaRelayError
Available on crate feature http only.
impl ResponseError for EnigmaRelayError
Available on crate feature
http only.Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more
Source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Creates full response for error. Read more
Auto Trait Implementations§
impl Freeze for EnigmaRelayError
impl RefUnwindSafe for EnigmaRelayError
impl Send for EnigmaRelayError
impl Sync for EnigmaRelayError
impl Unpin for EnigmaRelayError
impl UnwindSafe for EnigmaRelayError
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