pub struct ContentType;Available on crate feature
file-stream only.Expand description
Configures the FileStream to set the Content-Type header to the provided value
when used as a response.
Implementations§
Source§impl ContentType
impl ContentType
pub fn to(self, header_value: HeaderValue) -> FileStreamProperty
Auto Trait Implementations§
impl Freeze for ContentType
impl RefUnwindSafe for ContentType
impl Send for ContentType
impl Sync for ContentType
impl Unpin for ContentType
impl UnwindSafe for ContentType
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