add some doc comments

This commit is contained in:
James Wilson
2021-07-01 09:58:18 +01:00
parent 5d00445324
commit 4bb1f19085
4 changed files with 13 additions and 2 deletions
+2
View File
@@ -1,3 +1,5 @@
//! Internal messages passed between the shard and telemetry core.
use std::net::IpAddr;
use crate::id_type;
+3 -2
View File
@@ -1,5 +1,6 @@
/// A log level that can be used as an expected argument,
/// decoded from a string, and converted into a [`log::LevelFilter`]
/// A log level that can be decoded from a string (and so can be used
/// as a CLI argument by things like StructOpt). It can be converted into
/// a [`log::LevelFilter`] for passing into logging systems.
#[derive(Debug, PartialEq)]
pub enum LogLevel {
Error,
+5
View File
@@ -1,3 +1,8 @@
//! This is the internal represenation of telemetry messages sent from nodes.
//! There is a separate JSON representation of these types, because internally we want to be
//! able to serialize these messages to bincode, and various serde attribtues aren't compatible
//! with this, hence this separate internal representation.
use crate::node_types::{Block, BlockHash, BlockNumber, NodeDetails};
use serde::{Deserialize, Serialize};
+3
View File
@@ -1,3 +1,6 @@
//! These types are partly used in [`crate::node_message`], but also stored and used
//! more generally through the application.
use serde::ser::{SerializeTuple, Serializer};
use serde::{Deserialize, Serialize};