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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more