Type Definition gnunet_sys::GNUNET_CORE_DisconnectEventHandler[][src]

type GNUNET_CORE_DisconnectEventHandler = Option<unsafe extern "C" fn(cls: *mut c_void, peer: *const GNUNET_PeerIdentity, peer_cls: *mut c_void)>;

Method called whenever a peer disconnects.

@param cls closure @param peer peer identity this notification is about @param peer_cls closure associated with peer. given in #GNUNET_CORE_ConnectEventHandler