[][src]Struct electrum_client::client::Client

pub struct Client<S> where
    S: Read + Write
{ /* fields omitted */ }

Methods

impl Client<TcpStream>[src]

pub fn new<A: ToSocketAddrs>(socket_addr: A) -> Result<Self>[src]

impl Client<ClonableStream<StreamOwned<ClientSession, TcpStream>>>[src]

pub fn new_ssl<A: ToSocketAddrs>(
    socket_addr: A,
    domain: Option<&str>
) -> Result<Self, Error>
[src]

impl Client<ClonableStream<Socks5Stream>>[src]

pub fn new_proxy<A: ToSocketAddrs, T: ToTargetAddr>(
    target_addr: T,
    proxy_addr: A
) -> Result<Self, Error>
[src]

impl<S: Read + Write> Client<S>[src]

pub fn batch_call(&mut self, batch: Batch) -> Result<Vec<Value>, Error>[src]

pub fn poll(&mut self) -> Result<(), Error>[src]

pub fn block_headers_subscribe(&mut self) -> Result<HeaderNotification, Error>[src]

pub fn block_headers_poll(
    &mut self
) -> Result<Option<HeaderNotification>, Error>
[src]

pub fn block_header(&mut self, height: usize) -> Result<BlockHeader, Error>[src]

pub fn block_headers(
    &mut self,
    start_height: usize,
    count: usize
) -> Result<GetHeadersRes, Error>
[src]

pub fn estimate_fee(&mut self, number: usize) -> Result<f64, Error>[src]

pub fn relay_fee(&mut self) -> Result<f64, Error>[src]

pub fn script_subscribe(
    &mut self,
    script: &Script
) -> Result<ScriptStatus, Error>
[src]

pub fn script_unsubscribe(&mut self, script: &Script) -> Result<bool, Error>[src]

pub fn script_poll(
    &mut self,
    script: &Script
) -> Result<Option<ScriptStatus>, Error>
[src]

pub fn script_get_balance(
    &mut self,
    script: &Script
) -> Result<GetBalanceRes, Error>
[src]

pub fn batch_script_get_balance(
    &mut self,
    scripts: Vec<&Script>
) -> Result<Vec<GetBalanceRes>, Error>
[src]

pub fn script_get_history(
    &mut self,
    script: &Script
) -> Result<Vec<GetHistoryRes>, Error>
[src]

pub fn batch_script_get_history(
    &mut self,
    scripts: Vec<&Script>
) -> Result<Vec<Vec<GetHistoryRes>>, Error>
[src]

pub fn script_list_unspent(
    &mut self,
    script: &Script
) -> Result<Vec<ListUnspentRes>, Error>
[src]

pub fn batch_script_list_unspent(
    &mut self,
    scripts: Vec<&Script>
) -> Result<Vec<Vec<ListUnspentRes>>, Error>
[src]

pub fn transaction_get(&mut self, tx_hash: &Txid) -> Result<Transaction, Error>[src]

pub fn batch_transaction_get(
    &mut self,
    tx_hashes: Vec<&Txid>
) -> Result<Vec<Transaction>, Error>
[src]

pub fn transaction_broadcast(&mut self, tx: &Transaction) -> Result<Txid, Error>[src]

pub fn transaction_get_merkle(
    &mut self,
    txid: &Txid,
    height: usize
) -> Result<GetMerkleRes, Error>
[src]

pub fn server_features(&mut self) -> Result<ServerFeaturesRes, Error>[src]

pub fn increment_calls(&self)[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Client<S> where
    S: RefUnwindSafe

impl<S> Send for Client<S> where
    S: Send

impl<S> Sync for Client<S> where
    S: Sync

impl<S> Unpin for Client<S> where
    S: Unpin

impl<S> UnwindSafe for Client<S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.