casper-node 0.1.0

The Casper blockchain node
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::fmt::{self, Debug, Display, Formatter};

use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct Message<P>(pub(super) P);

impl<P: Display> Display for Message<P> {
    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
        write!(f, "payload: {}", self.0)
    }
}