pub enum StaticResponseBody {
InMemory(Bytes),
Stream(PathBuf),
}Expand description
Body payload for a static response
Variants§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for StaticResponseBody
impl RefUnwindSafe for StaticResponseBody
impl Send for StaticResponseBody
impl Sync for StaticResponseBody
impl Unpin for StaticResponseBody
impl UnwindSafe for StaticResponseBody
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