Struct lightning_signer::util::test_utils::TestChainMonitor[][src]

pub struct TestChainMonitor<'a> {
    pub added_monitors: Mutex<Vec<(OutPoint, ())>>,
    pub latest_monitor_update_id: Mutex<Map<[u8; 32], (OutPoint, u64)>>,
    pub chain_monitor: ChainMonitor<LoopbackChannelSigner, &'a TestChainSource, &'a dyn BroadcasterInterface, &'a TestFeeEstimator, &'a TestLogger, &'a dyn Persist<LoopbackChannelSigner>>,
    pub update_ret: Mutex<Option<Result<(), ChannelMonitorUpdateErr>>>,
    pub next_update_ret: Mutex<Option<Result<(), ChannelMonitorUpdateErr>>>,
}

Fields

added_monitors: Mutex<Vec<(OutPoint, ())>>latest_monitor_update_id: Mutex<Map<[u8; 32], (OutPoint, u64)>>chain_monitor: ChainMonitor<LoopbackChannelSigner, &'a TestChainSource, &'a dyn BroadcasterInterface, &'a TestFeeEstimator, &'a TestLogger, &'a dyn Persist<LoopbackChannelSigner>>update_ret: Mutex<Option<Result<(), ChannelMonitorUpdateErr>>>next_update_ret: Mutex<Option<Result<(), ChannelMonitorUpdateErr>>>

Implementations

Trait Implementations

Watches a channel identified by funding_txo using monitor. Read more

Updates a channel identified by funding_txo by applying update to its monitor. Read more

Returns any monitor events since the last call. Subsequent calls must only return new events. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.