Enum leptos_spin::response::SpinBody
source · pub enum SpinBody {
Plain(Vec<u8>),
Streaming(Pin<Box<dyn Stream<Item = Result<Bytes, Box<dyn Error>>> + Send>>),
}
Expand description
We either can return a fairly simple Box type for normal bodies or a Stream for Streaming server functions
Variants§
Auto Trait Implementations§
impl !RefUnwindSafe for SpinBody
impl Send for SpinBody
impl !Sync for SpinBody
impl Unpin for SpinBody
impl !UnwindSafe for SpinBody
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