SparkConfig

Struct SparkConfig 

Source
pub struct SparkConfig<K: Clone + Eq + Hash + Ord + FromStr + ToString>
where <K as FromStr>::Err: Debug,
{ /* private fields */ }
Expand description

Spark configuration.

Implementations§

Source§

impl<K: Clone + Eq + Hash + Ord + FromStr + ToString> SparkConfig<K>
where <K as FromStr>::Err: Debug,

Source

pub fn operators(&self) -> &Vec<SparkOperatorConfig>

Get Spark operators.

Source

pub fn bitcoin_network(&self) -> BitcoinNetwork

Get Bitcoin network.

Source

pub fn mempool_base_url(&self) -> Option<&str>

Get Mempool base URL.

Source

pub fn mempool_username(&self) -> Option<&str>

Get Mempool username.

Source

pub fn mempool_password(&self) -> Option<&str>

Get Mempool password.

Source

pub fn mempool_auth(&self) -> Option<(&str, &str)>

Get Mempool authentication.

Source

pub fn electrs_base_url(&self) -> Option<&str>

Get Electrs base URL.

Source

pub fn electrs_auth(&self) -> Option<(&str, &str)>

Get Electrs authentication.

Source

pub fn bitcoin_base_url(&self) -> Option<&str>

Get Bitcoin base URL (alias for electrs_base_url).

Source

pub fn lrc20_node_url(&self) -> Option<&str>

Get LRC20 Node base URL.

Source

pub fn ssp_endpoint(&self, key: &K) -> Option<Url>

Returns the endpoint for the SSP for the given key.

Source

pub fn coordinator_operator(&self) -> Option<&SparkOperatorConfig>

Returns the coordinator operator config, if one is designated.

Auto Trait Implementations§

§

impl<K> Freeze for SparkConfig<K>

§

impl<K> RefUnwindSafe for SparkConfig<K>
where K: RefUnwindSafe,

§

impl<K> Send for SparkConfig<K>
where K: Send,

§

impl<K> Sync for SparkConfig<K>
where K: Sync,

§

impl<K> Unpin for SparkConfig<K>

§

impl<K> UnwindSafe for SparkConfig<K>
where K: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T