pub struct ServedFile {
pub body: Vec<u8>,
pub content_type: ContentType,
}Expand description
Response body returned by serve_file.
Fields§
§body: Vec<u8>§content_type: ContentTypeTrait Implementations§
Auto Trait Implementations§
impl Freeze for ServedFile
impl RefUnwindSafe for ServedFile
impl Send for ServedFile
impl Sync for ServedFile
impl Unpin for ServedFile
impl UnsafeUnpin for ServedFile
impl UnwindSafe for ServedFile
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