Enum bip_handshake::FilterDecision [] [src]

pub enum FilterDecision {
    Pass,
    Block,
    NeedData,
    Allow,
}

Filtering decision made for a given handshake.

Variants

Pass on making a filter decision for the given field.

Block the handshake based on the given data.

Filter needs the given data to make a decision.

Allow the handshake based on the given data.

Allowing a field that a previous filter blocked will have a whitelisting effect, where the block will be overriden.

Methods

impl FilterDecision
[src]

[src]

Choose between the current decision, and the other decision.

Allow > NeedData > Block > Pass

Trait Implementations

impl Copy for FilterDecision
[src]

impl Clone for FilterDecision
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for FilterDecision
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for FilterDecision
[src]

impl Debug for FilterDecision
[src]

[src]

Formats the value using the given formatter.