[][src]Struct bitcoin::util::bip158::BlockFilterWriter

pub struct BlockFilterWriter<'a> { /* fields omitted */ }

Compiles and writes a block filter

Methods

impl<'a> BlockFilterWriter<'a>[src]

pub fn new(writer: &'a mut dyn Write, block: &'a Block) -> BlockFilterWriter<'a>[src]

Create a block filter writer

pub fn add_output_scripts(&mut self)[src]

Add output scripts of the block - excluding OP_RETURN scripts

pub fn add_input_scripts<M>(&mut self, script_for_coin: M) -> Result<(), Error> where
    M: Fn(&OutPoint) -> Result<Script, Error>, 
[src]

Add consumed output scripts of a block to filter

pub fn add_element(&mut self, data: &[u8])[src]

Add arbitrary element to a filter

pub fn finish(&mut self) -> Result<usize, Error>[src]

Write block filter

Auto Trait Implementations

impl<'a> Unpin for BlockFilterWriter<'a>

impl<'a> !Sync for BlockFilterWriter<'a>

impl<'a> !Send for BlockFilterWriter<'a>

impl<'a> !UnwindSafe for BlockFilterWriter<'a>

impl<'a> !RefUnwindSafe for BlockFilterWriter<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]