Struct breez_sdk_liquid::bitcoin::util::bip158::BlockFilter
pub struct BlockFilter {
pub content: Vec<u8>,
}
Expand description
a computed or read block filter
Fields§
§content: Vec<u8>
Golomb encoded filter
Implementations§
§impl BlockFilter
impl BlockFilter
pub fn filter_header(
&self,
previous_filter_header: &FilterHeader,
) -> FilterHeader
pub fn filter_header( &self, previous_filter_header: &FilterHeader, ) -> FilterHeader
compute this filter’s id in a chain of filters
pub fn new(content: &[u8]) -> BlockFilter
pub fn new(content: &[u8]) -> BlockFilter
create a new filter from pre-computed data
pub fn new_script_filter<M>(
block: &Block,
script_for_coin: M,
) -> Result<BlockFilter, Error>
pub fn new_script_filter<M>( block: &Block, script_for_coin: M, ) -> Result<BlockFilter, Error>
Compute a SCRIPT_FILTER that contains spent and output scripts
Trait Implementations§
§impl Clone for BlockFilter
impl Clone for BlockFilter
§fn clone(&self) -> BlockFilter
fn clone(&self) -> BlockFilter
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 more§impl Debug for BlockFilter
impl Debug for BlockFilter
§impl PartialEq for BlockFilter
impl PartialEq for BlockFilter
impl Eq for BlockFilter
impl StructuralPartialEq for BlockFilter
Auto Trait Implementations§
impl Freeze for BlockFilter
impl RefUnwindSafe for BlockFilter
impl Send for BlockFilter
impl Sync for BlockFilter
impl Unpin for BlockFilter
impl UnwindSafe for BlockFilter
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request