event

Function event 

Source
pub async fn event<'a>(peer_info: PeerInfo) -> Result<PeerEventEnum, Error>
Expand description

Listen an event of a Peer Object.

It’s bindings for GET /peers/{peer_id}/events

API