Enum holochain_zome_types::chain::ChainFilters
source · pub enum ChainFilters<H = HoloHash<Action>>{
ToGenesis,
Take(u32),
Until(HashSet<H>),
Both(u32, HashSet<H>),
}
Expand description
Specify which Action
s to allow through
this filter.
Variants§
ToGenesis
Allow all up to genesis.
Take(u32)
Take this many (inclusive of the starting position).
Until(HashSet<H>)
Continue until one of these hashes is found.
Both(u32, HashSet<H>)
Combination of both take and until. Whichever is the smaller set.
Trait Implementations§
source§impl<H> Clone for ChainFilters<H>
impl<H> Clone for ChainFilters<H>
source§fn clone(&self) -> ChainFilters<H>
fn clone(&self) -> ChainFilters<H>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<H> Debug for ChainFilters<H>
impl<H> Debug for ChainFilters<H>
source§impl<H> Default for ChainFilters<H>
impl<H> Default for ChainFilters<H>
source§fn default() -> ChainFilters<H>
fn default() -> ChainFilters<H>
Returns the “default value” for a type. Read more
source§impl<'de, H> Deserialize<'de> for ChainFilters<H>
impl<'de, H> Deserialize<'de> for ChainFilters<H>
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ChainFilters<H>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ChainFilters<H>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<H> Hash for ChainFilters<H>
impl<H> Hash for ChainFilters<H>
Create a deterministic hash to compare filters.
source§impl<H> PartialEq for ChainFilters<H>
impl<H> PartialEq for ChainFilters<H>
Implement a deterministic partial eq to compare ChainFilters.
source§fn eq(&self, other: &ChainFilters<H>) -> bool
fn eq(&self, other: &ChainFilters<H>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<H> Serialize for ChainFilters<H>
impl<H> Serialize for ChainFilters<H>
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<H> Eq for ChainFilters<H>
Auto Trait Implementations§
impl<H> RefUnwindSafe for ChainFilters<H>where
H: RefUnwindSafe,
impl<H> Send for ChainFilters<H>where
H: Send,
impl<H> Sync for ChainFilters<H>where
H: Sync,
impl<H> Unpin for ChainFilters<H>where
H: Unpin,
impl<H> UnwindSafe for ChainFilters<H>where
H: UnwindSafe,
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> CallHasher for T
impl<T> CallHasher for T
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.§impl<T> Upcastable for T
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn