pub struct Source { /* private fields */ }Implementations§
Source§impl Source
impl Source
pub fn connect(url: &str, network: &Network) -> Result<Self, Error>
pub fn height(&self) -> Result<u64, Error>
pub fn block_hash(&self, height: u64) -> Result<BlockHash, Error>
pub fn transaction_bundle( &self, txids: &[Txid], ) -> Result<(Vec<u8>, Value), Error>
pub fn funding( &self, address: &str, allow_unconfirmed: bool, ) -> Result<(Funding, Value), Error>
pub fn scan(&self, key: &[u8; 32], start_height: u64) -> Result<Scan, Error>
pub fn read_range( &self, start_height: u64, tip_height: u64, progress: &mut dyn FnMut(u64) -> Result<(), Error>, emit: &mut dyn FnMut(&[u8]) -> Result<(), Error>, ) -> Result<Observation, Error>
pub fn status_plan(&self, plan: &Plan) -> Result<Value, Error>
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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