[][src]Enum casper_node::effect::announcements::NetworkAnnouncement

#[must_use]pub enum NetworkAnnouncement<I, P> {
    MessageReceived {
        sender: I,
        payload: P,
    },
    GossipOurAddress(GossipedAddress),
    NewPeer(I),
}

A networking layer announcement.

Variants

MessageReceived

A payload message has been received from a peer.

Fields of MessageReceived

sender: I

The sender of the message

payload: P

The message payload

GossipOurAddress(GossipedAddress)

Our public listening address should be gossiped across the network.

NewPeer(I)

A new peer connection was established.

IMPORTANT NOTE: This announcement is a work-around for some short-term functionality. Do not rely on or use this for anything without asking anyone that has written this section of the code first!

Trait Implementations

impl<I: Debug, P: Debug> Debug for NetworkAnnouncement<I, P>[src]

impl<I, P> Display for NetworkAnnouncement<I, P> where
    I: Display,
    P: Display
[src]

impl From<NetworkAnnouncement<NodeId, Message>> for Event[src]

impl From<NetworkAnnouncement<NodeId, Message>> for Event[src]

impl<I, P> Serialize for NetworkAnnouncement<I, P> where
    I: Serialize,
    P: Serialize
[src]

Auto Trait Implementations

impl<I, P> RefUnwindSafe for NetworkAnnouncement<I, P> where
    I: RefUnwindSafe,
    P: RefUnwindSafe
[src]

impl<I, P> Send for NetworkAnnouncement<I, P> where
    I: Send,
    P: Send
[src]

impl<I, P> Sync for NetworkAnnouncement<I, P> where
    I: Sync,
    P: Sync
[src]

impl<I, P> Unpin for NetworkAnnouncement<I, P> where
    I: Unpin,
    P: Unpin
[src]

impl<I, P> UnwindSafe for NetworkAnnouncement<I, P> where
    I: UnwindSafe,
    P: UnwindSafe
[src]

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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>, 

impl<T> WithSubscriber for T[src]