//! Message module.
usecrate::prelude::*;/// An enum representing the various forms of a WebSocket message.
#[derive(Debug, Eq, PartialEq, Clone, EnumAsInner)]pubenumMessage{/// A text WebSocket message.
Text(String),/// A binary WebSocket message.
Binary(Vec<u8>),/// Message sent when the connection is closed.
Close(Option<(u16, String)>)}