Struct breez_sdk_liquid::bitcoin::util::bip158::BlockFilterWriter
pub struct BlockFilterWriter<'a> { /* private fields */ }
Expand description
Compiles and writes a block filter
Implementations§
§impl<'a> BlockFilterWriter<'a>
impl<'a> BlockFilterWriter<'a>
pub fn new(writer: &'a mut dyn Write, block: &'a Block) -> BlockFilterWriter<'a>
pub fn new(writer: &'a mut dyn Write, block: &'a Block) -> BlockFilterWriter<'a>
Create a block filter writer
pub fn add_output_scripts(&mut self)
pub fn add_output_scripts(&mut self)
Add output scripts of the block - excluding OP_RETURN scripts
pub fn add_input_scripts<M>(&mut self, script_for_coin: M) -> Result<(), Error>
pub fn add_input_scripts<M>(&mut self, script_for_coin: M) -> Result<(), Error>
Add consumed output scripts of a block to filter
pub fn add_element(&mut self, data: &[u8])
pub fn add_element(&mut self, data: &[u8])
Add arbitrary element to a filter
Auto Trait Implementations§
impl<'a> Freeze for BlockFilterWriter<'a>
impl<'a> !RefUnwindSafe for BlockFilterWriter<'a>
impl<'a> !Send for BlockFilterWriter<'a>
impl<'a> !Sync for BlockFilterWriter<'a>
impl<'a> Unpin for BlockFilterWriter<'a>
impl<'a> !UnwindSafe for BlockFilterWriter<'a>
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
§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