pub struct HTTPNodeClient { /* private fields */ }Implementations
sourceimpl HTTPNodeClient
impl HTTPNodeClient
Trait Implementations
sourceimpl Clone for HTTPNodeClient
impl Clone for HTTPNodeClient
sourcefn clone(&self) -> HTTPNodeClient
fn clone(&self) -> HTTPNodeClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl NodeClient for HTTPNodeClient
impl NodeClient for HTTPNodeClient
sourcefn post_tx(&self, tx: &TxWrapper, fluff: bool) -> Result<(), Error>
fn post_tx(&self, tx: &TxWrapper, fluff: bool) -> Result<(), Error>
Posts a transaction to a epic node
sourcefn get_kernel(
&mut self,
excess: &Commitment,
min_height: Option<u64>,
max_height: Option<u64>
) -> Result<Option<(TxKernel, u64, u64)>, Error>
fn get_kernel(
&mut self,
excess: &Commitment,
min_height: Option<u64>,
max_height: Option<u64>
) -> Result<Option<(TxKernel, u64, u64)>, Error>
Get kernel implementation
sourcefn get_outputs_from_node(
&self,
wallet_outputs: Vec<Commitment>
) -> Result<HashMap<Commitment, (String, u64, u64)>, Error>
fn get_outputs_from_node(
&self,
wallet_outputs: Vec<Commitment>
) -> Result<HashMap<Commitment, (String, u64, u64)>, Error>
Retrieve outputs from node
sourcefn node_api_secret(&self) -> Option<String>
fn node_api_secret(&self) -> Option<String>
Return the node api secret
sourcefn set_node_url(&mut self, node_url: &str)
fn set_node_url(&mut self, node_url: &str)
Set the node URL
sourcefn set_node_api_secret(&mut self, node_api_secret: Option<String>)
fn set_node_api_secret(&mut self, node_api_secret: Option<String>)
Change the API secret
sourcefn get_version_info(&mut self) -> Option<NodeVersionInfo>
fn get_version_info(&mut self) -> Option<NodeVersionInfo>
Returns the api version string and block header version as reported by the node. Result can be cached for later use Read more
sourcefn get_outputs_by_pmmr_index(
&self,
start_index: u64,
end_index: Option<u64>,
max_outputs: u64
) -> Result<(u64, u64, Vec<(Commitment, RangeProof, bool, u64, u64)>), Error>
fn get_outputs_by_pmmr_index(
&self,
start_index: u64,
end_index: Option<u64>,
max_outputs: u64
) -> Result<(u64, u64, Vec<(Commitment, RangeProof, bool, u64, u64)>), Error>
Get a list of outputs from the node by traversing the UTXO set in PMMR index order. Returns (last available output index, last insertion index retrieved, outputs(commit, proof, is_coinbase, height, mmr_index)) Read more
Auto Trait Implementations
impl RefUnwindSafe for HTTPNodeClient
impl Send for HTTPNodeClient
impl Sync for HTTPNodeClient
impl Unpin for HTTPNodeClient
impl UnwindSafe for HTTPNodeClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CloneAny for T where
T: Any + Clone,
impl<T> CloneAny for T where
T: Any + Clone,
fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global> where
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global> where
T: Sync,
fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + Sync + Send + 'static, Global> where
T: Send + Sync,
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Send + Sync + Clone,
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Send + Sync + Clone,
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more
fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of self. Read more
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more
fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of self. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given ptr, which was obtained from a prior call to Self::borrow(),
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self. Read more