pub enum Body<W, A> {
Application(A),
Error(Error),
Init(Init),
Workload(W),
}
Variants§
Application(A)
An application defined node-to-node message
From the Maelstrom message documentation
Messages exchanged between your server nodes may have any body structure you like; you are not limited to request-response, and may invent any message semantics you choose. If some of your messages do use the body format described above, Maelstrom can help generate useful visualizations and statistics for those messages.
Error(Error)
Init(Init)
Workload(W)
Trait Implementations§
Source§impl<'de, W, A> Deserialize<'de> for Body<W, A>where
W: Deserialize<'de>,
A: Deserialize<'de>,
impl<'de, W, A> Deserialize<'de> for Body<W, A>where
W: Deserialize<'de>,
A: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<W: Eq, A: Eq> Eq for Body<W, A>
impl<W, A> StructuralPartialEq for Body<W, A>
Auto Trait Implementations§
impl<W, A> Freeze for Body<W, A>
impl<W, A> RefUnwindSafe for Body<W, A>where
A: RefUnwindSafe,
W: RefUnwindSafe,
impl<W, A> Send for Body<W, A>
impl<W, A> Sync for Body<W, A>
impl<W, A> Unpin for Body<W, A>
impl<W, A> UnwindSafe for Body<W, A>where
A: UnwindSafe,
W: 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