doc: bitswap Stats and BitswapEvent, remove re-export of BitswapEvent
This commit is contained in:
parent
c2609247ed
commit
86fd2f7fdf
@ -26,6 +26,7 @@ use std::{
|
||||
},
|
||||
};
|
||||
|
||||
/// Event used to communicate with the swarm or the higher level behaviour.
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
pub enum BitswapEvent {
|
||||
ReceivedBlock(PeerId, Block),
|
||||
@ -33,6 +34,7 @@ pub enum BitswapEvent {
|
||||
ReceivedCancel(PeerId, Cid),
|
||||
}
|
||||
|
||||
/// Bitswap statistics.
|
||||
#[derive(Debug, Default)]
|
||||
pub struct Stats {
|
||||
pub sent_blocks: AtomicU64,
|
||||
|
@ -65,7 +65,7 @@ pub use self::{
|
||||
path::IpfsPath,
|
||||
repo::{PinKind, PinMode, RepoTypes},
|
||||
};
|
||||
pub use bitswap::{BitswapEvent, Block, Stats};
|
||||
pub use bitswap::{Block, Stats};
|
||||
pub use cid::Cid;
|
||||
pub use libp2p::{
|
||||
core::{
|
||||
|
Loading…
Reference in New Issue
Block a user