Enum bip_handshake::FilterDecision
[−]
[src]
pub enum FilterDecision { Pass, Block, NeedData, Allow, }
Filtering decision made for a given handshake.
Variants
Pass
Pass on making a filter decision for the given field.
Block
Block the handshake based on the given data.
NeedData
Filter needs the given data to make a decision.
Allow
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]
fn choose(&self, other: FilterDecision) -> FilterDecision
[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]
fn clone(&self) -> FilterDecision
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for FilterDecision
[src]
fn eq(&self, __arg_0: &FilterDecision) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.