1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! # Response module.
//!
//! A [`Response`] is the type of data sent by the server to the
//! client straight after receiving a request.

use super::Timer;

/// The response struct.
///
/// Responses are sent by servers and received by clients.
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum Response {
    /// Default response when everything goes fine.
    Ok,

    /// Response that contains the current timer.
    Timer(Timer),
}