pub enum Body {
Empty,
Bytes(Bytes),
Text(String),
Custom(Arc<dyn Any + Send + Sync>),
}Expand description
Body variants carried by a Message.
Custom uses Arc<dyn Any> so arbitrary application types can flow
through the pipeline without the core knowing about them.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Body
impl !RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnsafeUnpin for Body
impl !UnwindSafe for Body
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