mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-04 12:11:35 +00:00
protocols: Derive debug for MemoryStoreConfig and IdentifyConfig (#2029)
This commit is contained in:
@ -85,6 +85,7 @@ enum Reply {
|
||||
|
||||
/// Configuration for the [`Identify`] [`NetworkBehaviour`].
|
||||
#[non_exhaustive]
|
||||
#[derive(Debug)]
|
||||
pub struct IdentifyConfig {
|
||||
/// Application-specific version of the protocol family used by the peer,
|
||||
/// e.g. `ipfs/1.0.0` or `polkadot/1.0.0`.
|
||||
|
@ -44,6 +44,7 @@ pub struct MemoryStore {
|
||||
}
|
||||
|
||||
/// Configuration for a `MemoryStore`.
|
||||
#[derive(Debug)]
|
||||
pub struct MemoryStoreConfig {
|
||||
/// The maximum number of records.
|
||||
pub max_records: usize,
|
||||
|
Reference in New Issue
Block a user