pub struct HttpFrameResponse(/* private fields */);
Expand description
An intrepid frame being turned into an axum json response.
Implementations§
Source§impl HttpFrameResponse
impl HttpFrameResponse
Sourcepub fn into_plain_response(self) -> impl IntoResponse
pub fn into_plain_response(self) -> impl IntoResponse
Become a plain response.
Sourcepub fn into_json_response(self) -> impl IntoResponse
pub fn into_json_response(self) -> impl IntoResponse
Become a JSON response.
Trait Implementations§
Source§impl Debug for HttpFrameResponse
impl Debug for HttpFrameResponse
Source§impl From<Frame> for HttpFrameResponse
impl From<Frame> for HttpFrameResponse
Source§impl From<HttpFrameResponse> for Frame
impl From<HttpFrameResponse> for Frame
Source§fn from(frame: HttpFrameResponse) -> Self
fn from(frame: HttpFrameResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for HttpFrameResponse
impl RefUnwindSafe for HttpFrameResponse
impl Send for HttpFrameResponse
impl Sync for HttpFrameResponse
impl Unpin for HttpFrameResponse
impl UnwindSafe for HttpFrameResponse
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