Enum libp2p::gossipsub::MessageAcceptance
source · [−]pub enum MessageAcceptance {
Accept,
Reject,
Ignore,
}
Expand description
Validation kinds from the application for received messages.
Variants
Accept
The message is considered valid, and it should be delivered and forwarded to the network.
Reject
The message is considered invalid, and it should be rejected and trigger the P₄ penalty.
Ignore
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
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more