cometd 0.1.2

Cometd implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Represents an error. Every time an error is created through
/// the [`new`](Error::new) function. It will log an error.
#[derive(Debug)]
pub struct Error {
    pub message: String,
}

impl Error {
    pub fn new(msg: &str) -> Error {
        log::error!("{}", msg);
        Error {
            message: msg.to_owned(),
        }
    }
}