pub enum RenderedBody {
Static(&'static [u8]),
Bytes(Vec<u8>),
String(String),
Empty,
}Expand description
The contents of a response produced by a crate::servable::Servable
Variants§
Static(&'static [u8])
Static raw bytes
Bytes(Vec<u8>)
Dynamic raw bytes
String(String)
A UTF-8 string
Empty
No body. Equivalent to Self::Static(&[]).
Trait Implementations§
Source§impl Clone for RenderedBody
impl Clone for RenderedBody
Source§fn clone(&self) -> RenderedBody
fn clone(&self) -> RenderedBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RenderedBody
impl RefUnwindSafe for RenderedBody
impl Send for RenderedBody
impl Sync for RenderedBody
impl Unpin for RenderedBody
impl UnwindSafe for RenderedBody
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