//! nash-ws error module.
/// Specific error to each backend.
pubusecrate::backend::BackendError;/// All possible errors emitted by the WebSocket.
#[derive(Debug)]pubenumError{/// Error emitted if the connection fails.
ConnectionError(BackendError),/// Error emitted if sending a message fails.
SendError(BackendError),/// Error emitted if receiving a message fails.
ReceiveError(BackendError)}/// Result type of nash-ws.
pubtypeWebsocketResult<T>=Result<T, Error>;