Enum libp2p_gossipsub::MessageAcceptance [−][src]
pub enum MessageAcceptance { Accept, Reject, Ignore, }
Expand description
Validation kinds from the application for received messages.
Variants
The message is considered valid, and it should be delivered and forwarded to the network.
The message is considered invalid, and it should be rejected and trigger the P₄ penalty.
The message is neither delivered nor forwarded to the network, but the router does not trigger the P₄ penalty.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MessageAcceptance
impl Send for MessageAcceptance
impl Sync for MessageAcceptance
impl Unpin for MessageAcceptance
impl UnwindSafe for MessageAcceptance