pub struct Node { /* private fields */ }Implementations§
Source§impl Node
impl Node
pub fn connect(config: NodeConfig) -> Result<Self, Error>
pub fn public(chain: Chain) -> Result<Self, Error>
pub fn public_in(chain: Chain, cache_dir: &Path) -> Result<Self, Error>
pub fn public_in_with_endpoints( chain: Chain, cache_dir: &Path, public: Vec<PublicEndpoint>, ) -> Result<Self, Error>
pub fn public_in_with_providers( chain: Chain, cache_dir: &Path, additional: Vec<Box<dyn Provider>>, ) -> Result<Self, Error>
pub fn public_pinned(chain: Chain, cache_dir: &Path) -> Result<Self, Error>
pub fn light_client_progress(&self) -> LightSync
pub fn warm_light_client(&self) -> Result<(), Error>
pub fn with_public_sources( chain: Chain, endpoints: Vec<PublicEndpoint>, ) -> Result<Self, Error>
pub fn with_providers( chain: Chain, providers: Vec<Box<dyn Provider>>, ) -> Result<Self, Error>
pub fn is_public(&self) -> bool
pub fn evidence(&self) -> Evidence
pub fn inclusion_evidence(&self) -> &'static str
pub fn provider_labels(&self) -> Vec<String>
pub fn standings(&self) -> Vec<Standing>
pub fn observe(&self, method: &str, args: &[Value]) -> Result<Observed, Error>
pub fn chain(&self) -> Chain
pub fn tip_height(&self) -> Result<u64, Error>
pub fn block_hash(&self, height: u64) -> Result<BlockHash, Error>
pub fn block(&self, height: u64) -> Result<Block, Error>
pub fn block_at(&self, height: u64) -> Result<(Block, BlockHash), Error>
pub fn confirmations(&self, txid: Txid) -> Result<u32, Error>
pub fn call(&self, method: &str, args: &[Value]) -> Result<Value, Error>
pub fn presence_after_submission(&self, txid: Txid) -> Result<Presence, Error>
pub fn require_txindex(&self) -> Result<(), Error>
pub fn verify_network(&self) -> Result<(), Error>
pub fn tip(&self) -> Result<(u64, String), Error>
pub fn transaction(&self, txid: Txid) -> Result<Transaction, Error>
pub fn transaction_avoiding( &self, txid: Txid, avoid: &[String], ) -> Result<(Transaction, String), Error>
pub fn presence(&self, txid: Txid) -> Result<Presence, Error>
Auto Trait Implementations§
impl !Freeze for Node
impl !RefUnwindSafe for Node
impl !UnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
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