pub struct SourceWithProofFollower(/* private fields */);
Expand description
A follower for BlockSource with SPV proofs
Implementations§
Source§impl SourceWithProofFollower
impl SourceWithProofFollower
Sourcepub fn new(source: Box<dyn BlockSource>) -> Self
pub fn new(source: Box<dyn BlockSource>) -> 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 SourceWithProofFollower
impl !RefUnwindSafe for SourceWithProofFollower
impl Send for SourceWithProofFollower
impl Sync for SourceWithProofFollower
impl Unpin for SourceWithProofFollower
impl !UnwindSafe for SourceWithProofFollower
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