Type Alias FloodsubEvent

pub type FloodsubEvent = Event;
👎Deprecated: Use Event instead.
Available on crate feature floodsub only.

Aliased Type§

enum FloodsubEvent {
    Message(FloodsubMessage),
    Subscribed {
        peer_id: PeerId,
        topic: Topic,
    },
    Unsubscribed {
        peer_id: PeerId,
        topic: Topic,
    },
}

Variants§

§

Message(FloodsubMessage)

A message has been received.

§

Subscribed

A remote subscribed to a topic.

Fields

§peer_id: PeerId

Remote that has subscribed.

§topic: Topic

The topic it has subscribed to.

§

Unsubscribed

A remote unsubscribed from a topic.

Fields

§peer_id: PeerId

Remote that has unsubscribed.

§topic: Topic

The topic it has subscribed from.