Struct sapio_base::txindex::TxIndexLogger
source · pub struct TxIndexLogger { /* private fields */ }
Expand description
a TxIndex which just tracks what it’s seen and has no network
Implementations§
source§impl TxIndexLogger
impl TxIndexLogger
sourcepub fn new() -> TxIndexLogger
pub fn new() -> TxIndexLogger
create a new default instance
Trait Implementations§
source§impl Default for TxIndexLogger
impl Default for TxIndexLogger
source§impl TxIndex for TxIndexLogger
impl TxIndex for TxIndexLogger
source§fn lookup_tx(&self, b: &Txid) -> Result<Arc<Transaction>, TxIndexError>
fn lookup_tx(&self, b: &Txid) -> Result<Arc<Transaction>, TxIndexError>
lookup a tx
source§fn add_tx(&self, tx: Arc<Transaction>) -> Result<Txid, TxIndexError>
fn add_tx(&self, tx: Arc<Transaction>) -> Result<Txid, TxIndexError>
locally add a tx for tracking
source§fn lookup_output(&self, b: &OutPoint) -> Result<TxOut, TxIndexError>
fn lookup_output(&self, b: &OutPoint) -> Result<TxOut, TxIndexError>
lookup a particular output
Auto Trait Implementations§
impl RefUnwindSafe for TxIndexLogger
impl Send for TxIndexLogger
impl Sync for TxIndexLogger
impl Unpin for TxIndexLogger
impl UnwindSafe for TxIndexLogger
Blanket Implementations§
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