pub struct RespResultExtraPart<T, E, Extra>where
T: RespBody,
E: RespError,
Extra: IntoResponseParts,{ /* private fields */ }Implementations§
Source§impl<T, E, Extra> RespResultExtraPart<T, E, Extra>where
T: RespBody,
E: RespError,
Extra: IntoResponseParts,
impl<T, E, Extra> RespResultExtraPart<T, E, Extra>where
T: RespBody,
E: RespError,
Extra: IntoResponseParts,
pub fn map<R, F>(self, map: F) -> RespResultExtraPart<T, E, R>where
F: FnOnce(Extra) -> R,
R: IntoResponseParts,
pub fn map_none<F>(self, map: F) -> Selfwhere
F: FnOnce() -> Extra,
Trait Implementations§
Source§impl<T, E, Extra> Debug for RespResultExtraPart<T, E, Extra>
impl<T, E, Extra> Debug for RespResultExtraPart<T, E, Extra>
Source§impl<T, E, Extra> IntoResponse for RespResultExtraPart<T, E, Extra>where
T: RespBody,
E: RespError,
Extra: IntoResponseParts,
impl<T, E, Extra> IntoResponse for RespResultExtraPart<T, E, Extra>where
T: RespBody,
E: RespError,
Extra: IntoResponseParts,
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<T, E, Extra> Freeze for RespResultExtraPart<T, E, Extra>
impl<T, E, Extra> RefUnwindSafe for RespResultExtraPart<T, E, Extra>
impl<T, E, Extra> Send for RespResultExtraPart<T, E, Extra>
impl<T, E, Extra> Sync for RespResultExtraPart<T, E, Extra>
impl<T, E, Extra> Unpin for RespResultExtraPart<T, E, Extra>
impl<T, E, Extra> UnwindSafe for RespResultExtraPart<T, E, Extra>
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