pub struct ClientSetting { /* private fields */ }Expand description
Settings used for creating a bitcoincore rpc client.
Implementations§
Source§impl ClientSetting
impl ClientSetting
pub fn get_rpc_url(&self) -> &String
pub fn get_rpc_port(&self) -> &String
Usually resides in the datadir of your bitcoin setup (.bitcoin folder).
Sourcepub fn get_timeout_seconds(&self) -> &u64
pub fn get_timeout_seconds(&self) -> &u64
This is the time period in which the rpc connection stays alive despite not receiving a response from bitcoincore. It is important to set this high enough for creating a utxo set dump or scanning the utxo set takes more than the default 15 seconds.
Trait Implementations§
Source§impl Clone for ClientSetting
impl Clone for ClientSetting
Source§fn clone(&self) -> ClientSetting
fn clone(&self) -> ClientSetting
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientSetting
impl Debug for ClientSetting
Source§impl Default for ClientSetting
impl Default for ClientSetting
Source§fn default() -> ClientSetting
fn default() -> ClientSetting
Returns the “default value” for a type. Read more
Source§impl Drop for ClientSetting
impl Drop for ClientSetting
Auto Trait Implementations§
impl Freeze for ClientSetting
impl RefUnwindSafe for ClientSetting
impl Send for ClientSetting
impl Sync for ClientSetting
impl Unpin for ClientSetting
impl UnwindSafe for ClientSetting
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more