pub struct AxumFileResponse<From>(/* private fields */);Expand description
Carries a file result and filename until axum creates the response.
Trait Implementations§
Source§impl<File, Error> IntoResponse for AxumFileResponse<(Result<File, Error>, String)>
impl<File, Error> IntoResponse for AxumFileResponse<(Result<File, Error>, String)>
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<From> Freeze for AxumFileResponse<From>where
From: Freeze,
impl<From> RefUnwindSafe for AxumFileResponse<From>where
From: RefUnwindSafe,
impl<From> Send for AxumFileResponse<From>where
From: Send,
impl<From> Sync for AxumFileResponse<From>where
From: Sync,
impl<From> Unpin for AxumFileResponse<From>where
From: Unpin,
impl<From> UnsafeUnpin for AxumFileResponse<From>where
From: UnsafeUnpin,
impl<From> UnwindSafe for AxumFileResponse<From>where
From: UnwindSafe,
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
Source§impl<This> HttpProgramExt<This> for This
impl<This> HttpProgramExt<This> for This
Source§fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
Compiles a named HTTP program with this interpreter.