Enum routing::Filter
[−]
[src]
pub enum Filter { BlackList(BTreeSet<PublicKey>), WhiteList(BTreeSet<PublicKey>), }
The type of access filter for appendable data.
Variants
BlackList(BTreeSet<PublicKey>)
Everyone except the listed keys are allowed to append data.
WhiteList(BTreeSet<PublicKey>)
Only the listed keys are allowed to append data.
Methods
impl Filter
[src]
fn black_list<T: IntoIterator<Item=PublicKey>>(keys: T) -> Filter
Returns a filter black listing the given keys.
fn white_list<T: IntoIterator<Item=PublicKey>>(keys: T) -> Filter
Returns a filter white listing the given keys.
Trait Implementations
impl Hash for Filter
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Eq for Filter
[src]
impl PartialEq for Filter
[src]
fn eq(&self, __arg_0: &Filter) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Filter) -> bool
This method tests for !=
.
impl PartialOrd for Filter
[src]
fn partial_cmp(&self, __arg_0: &Filter) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Filter) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Filter) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Filter) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Filter) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Filter
[src]
fn cmp(&self, __arg_0: &Filter) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Clone for Filter
[src]
fn clone(&self) -> Filter
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more