pub struct SimpleKeyExtractionError(pub &'static str);Expand description
A minimal extraction-failure error: fixed status + text/plain body.
Matches actix_governor::SimpleKeyExtractionError’s default (status
500, content-type text/plain) — the only shape bamboo ever used (it
never called that type’s set_status_code/set_content_type).
Tuple Fields§
§0: &'static strImplementations§
Trait Implementations§
Source§impl Clone for SimpleKeyExtractionError
impl Clone for SimpleKeyExtractionError
Source§fn clone(&self) -> SimpleKeyExtractionError
fn clone(&self) -> SimpleKeyExtractionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SimpleKeyExtractionError
Source§impl Debug for SimpleKeyExtractionError
impl Debug for SimpleKeyExtractionError
Source§impl Display for SimpleKeyExtractionError
impl Display for SimpleKeyExtractionError
Source§impl Error for SimpleKeyExtractionError
impl Error for SimpleKeyExtractionError
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 ResponseError for SimpleKeyExtractionError
impl ResponseError for SimpleKeyExtractionError
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 SimpleKeyExtractionError
impl RefUnwindSafe for SimpleKeyExtractionError
impl Send for SimpleKeyExtractionError
impl Sync for SimpleKeyExtractionError
impl Unpin for SimpleKeyExtractionError
impl UnsafeUnpin for SimpleKeyExtractionError
impl UnwindSafe for SimpleKeyExtractionError
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