tatami 0.1.1

A library for creating satellites and interacting with Tatami protocols.
Documentation
use libp2p::{gossipsub::GossipsubEvent, kad::KademliaEvent, mdns::MdnsEvent};

#[derive(Debug)]
pub enum SatelliteSwamEvent {
	Kademlia(KademliaEvent),
	Mdns(MdnsEvent),
	GossipSub(GossipsubEvent),
}

impl From<KademliaEvent> for SatelliteSwamEvent {
	fn from(event: KademliaEvent) -> Self {
		Self::Kademlia(event)
	}
}

impl From<MdnsEvent> for SatelliteSwamEvent {
	fn from(event: MdnsEvent) -> Self {
		Self::Mdns(event)
	}
}

impl From<GossipsubEvent> for SatelliteSwamEvent {
	fn from(event: GossipsubEvent) -> Self {
		Self::GossipSub(event)
	}
}