pub enum Payload<B: Into<Body>> {
None,
Text(B),
Json(B),
XTar(B),
Tar(B),
}
Expand description
Types of payload that can be sent
Variants§
Implementations§
Auto Trait Implementations§
impl<B> Freeze for Payload<B>where
B: Freeze,
impl<B> RefUnwindSafe for Payload<B>where
B: RefUnwindSafe,
impl<B> Send for Payload<B>where
B: Send,
impl<B> Sync for Payload<B>where
B: Sync,
impl<B> Unpin for Payload<B>where
B: Unpin,
impl<B> UnwindSafe for Payload<B>where
B: UnwindSafe,
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