mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
20 lines
362 B
Rust
20 lines
362 B
Rust
use async_std::sync::{Arc, Mutex};
|
|
|
|
use darkfi::{
|
|
net,
|
|
serial::{SerialDecodable, SerialEncodable},
|
|
};
|
|
|
|
pub type DchatMsgsBuffer = Arc<Mutex<Vec<DchatMsg>>>;
|
|
|
|
impl net::Message for DchatMsg {
|
|
fn name() -> &'static str {
|
|
"DchatMsg"
|
|
}
|
|
}
|
|
|
|
#[derive(Debug, Clone, SerialEncodable, SerialDecodable)]
|
|
pub struct DchatMsg {
|
|
pub msg: String,
|
|
}
|