pub struct SourceWithTxooProofFollower { /* private fields */ }
Expand description
A follower for BlockSource with SPV proofs
Implementations§
Source§impl SourceWithTxooProofFollower
impl SourceWithTxooProofFollower
Sourcepub fn new(block_source: Box<dyn BlockSource>, source: Box<dyn Source>) -> Self
pub fn new(block_source: Box<dyn BlockSource>, source: Box<dyn Source>) -> Self
Create a new follower
Sourcepub async fn follow_with_proof(
&self,
current_height: u32,
current_hash: BlockHash,
tracker: &impl Tracker,
) -> Result<FollowWithProofAction, Error>
pub async fn follow_with_proof( &self, current_height: u32, current_hash: BlockHash, tracker: &impl Tracker, ) -> Result<FollowWithProofAction, Error>
Follow the chain, returning the next action to take
Auto Trait Implementations§
impl Freeze for SourceWithTxooProofFollower
impl !RefUnwindSafe for SourceWithTxooProofFollower
impl Send for SourceWithTxooProofFollower
impl Sync for SourceWithTxooProofFollower
impl Unpin for SourceWithTxooProofFollower
impl !UnwindSafe for SourceWithTxooProofFollower
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