Enum libp2p::gossipsub::protocol::GossipsubControlAction[][src]

pub enum GossipsubControlAction {
    IHave {
        topic_hash: TopicHash,
        message_ids: Vec<MessageId, Global>,
    },
    IWant {
        message_ids: Vec<MessageId, Global>,
    },
    Graft {
        topic_hash: TopicHash,
    },
    Prune {
        topic_hash: TopicHash,
    },
}

A Control message received by the gossipsub system.

Variants

IHave

Node broadcasts known messages per topic - IHave control message.

Fields of IHave

topic_hash: TopicHash

The topic of the messages.

message_ids: Vec<MessageId, Global>

A list of known message ids (peer_id + sequence _number) as a string.

IWant

The node requests specific message ids (peer_id + sequence _number) - IWant control message.

Fields of IWant

message_ids: Vec<MessageId, Global>

A list of known message ids (peer_id + sequence _number) as a string.

Graft

The node has been added to the mesh - Graft control message.

Fields of Graft

topic_hash: TopicHash

The mesh topic the peer should be added to.

Prune

The node has been removed from the mesh - Prune control message.

Fields of Prune

topic_hash: TopicHash

The mesh topic the peer should be removed from.

Trait Implementations

impl Clone for GossipsubControlAction[src]

impl Debug for GossipsubControlAction[src]

impl Eq for GossipsubControlAction[src]

impl Hash for GossipsubControlAction[src]

impl PartialEq<GossipsubControlAction> for GossipsubControlAction[src]

impl StructuralEq for GossipsubControlAction[src]

impl StructuralPartialEq for GossipsubControlAction[src]

Auto Trait Implementations

impl RefUnwindSafe for GossipsubControlAction

impl Send for GossipsubControlAction

impl Sync for GossipsubControlAction

impl Unpin for GossipsubControlAction

impl UnwindSafe for GossipsubControlAction

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]