diff --git a/src/lib.rs b/src/lib.rs index 70cbab50..85f312b5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -322,6 +322,9 @@ where } } +/// A behaviour that can execute await/.async protocols. +/// +/// Note: It is not possible to execute the same protocol with the same peer several simultaneous times. pub struct Behaviour { protocol_in_events: VecDeque<(PeerId, ProtocolInEvent)>, protocol_out_events: VecDeque<(PeerId, ProtocolOutEvent)>,