Struct bdk::blockchain::compact_filters::Mempool [−][src]
pub struct Mempool(_);
This is supported on crate feature
compact_filters
only.Expand description
Implementations
impl Mempool
[src]
impl Mempool
[src]pub fn add_tx(&self, tx: Transaction)
[src]
pub fn add_tx(&self, tx: Transaction)
[src]Add a transaction to the mempool
Note that this doesn’t propagate the transaction to other
peers. To do that, broadcast
should be used.
pub fn get_tx(&self, inventory: &Inventory) -> Option<Transaction>
[src]
pub fn get_tx(&self, inventory: &Inventory) -> Option<Transaction>
[src]Look-up a transaction in the mempool given an Inventory
request
pub fn has_tx(&self, txid: &Txid) -> bool
[src]
pub fn has_tx(&self, txid: &Txid) -> bool
[src]Return whether or not the mempool contains a transaction with a given txid
pub fn iter_txs(&self) -> Vec<Transaction>
[src]
pub fn iter_txs(&self) -> Vec<Transaction>
[src]Return the list of transactions contained in the mempool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Mempool
impl Send for Mempool
impl Sync for Mempool
impl Unpin for Mempool
impl UnwindSafe for Mempool
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,