pub struct MultipartRejectionError { /* private fields */ }Available on crate features
server and multipart only.Implementations§
Source§impl MultipartRejectionError
impl MultipartRejectionError
Sourcepub fn to_status_code(&self) -> StatusCode
pub fn to_status_code(&self) -> StatusCode
Convert the MultipartRejectionError into a http::StatusCode.
Trait Implementations§
Source§impl Debug for MultipartRejectionError
impl Debug for MultipartRejectionError
Source§impl Display for MultipartRejectionError
impl Display for MultipartRejectionError
Source§impl Error for MultipartRejectionError
impl Error for MultipartRejectionError
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 MultipartRejectionError
impl From<Error> for MultipartRejectionError
Auto Trait Implementations§
impl Freeze for MultipartRejectionError
impl !RefUnwindSafe for MultipartRejectionError
impl Send for MultipartRejectionError
impl Sync for MultipartRejectionError
impl Unpin for MultipartRejectionError
impl !UnwindSafe for MultipartRejectionError
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