bitcoind-log-parser 0.1.3

Parse Bitcoind Log Lines
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::error::Error as ErrorTrait;
use std::fmt;

#[derive(Debug)]
pub struct ParseError;

impl ErrorTrait for ParseError {}
impl fmt::Display for ParseError {
    //This trait requires `fmt` with this exact signature.
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        // Write strictly the first element into the supplied output
        // stream: `f`. Returns `fmt::Result` which indicates whether the
        // operation succeeded or failed. Note that `write!` uses syntax which
        // is very similar to `println!`.
        write!(f, "{}", self)
    }
}