pub enum MempoolConfigSource {
Explicit,
Default,
}Expand description
Where the mempool base URL came from.
MempoolConfigSource::Explicit means an operator supplied it (via
MEMPOOL_URL_ENV or MempoolHttpClient::new);
MempoolConfigSource::Default means nothing was configured and the
built-in DEFAULT_MEMPOOL_URL was used. The distinction matters because a
defaulted endpoint is an unchosen chain.
Variants§
Explicit
The operator supplied the base URL.
Default
Nothing was configured; DEFAULT_MEMPOOL_URL was used.
Implementations§
Trait Implementations§
Source§impl Clone for MempoolConfigSource
impl Clone for MempoolConfigSource
Source§fn clone(&self) -> MempoolConfigSource
fn clone(&self) -> MempoolConfigSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MempoolConfigSource
Source§impl Debug for MempoolConfigSource
impl Debug for MempoolConfigSource
Source§impl Display for MempoolConfigSource
impl Display for MempoolConfigSource
impl Eq for MempoolConfigSource
Source§impl PartialEq for MempoolConfigSource
impl PartialEq for MempoolConfigSource
impl StructuralPartialEq for MempoolConfigSource
Auto Trait Implementations§
impl Freeze for MempoolConfigSource
impl RefUnwindSafe for MempoolConfigSource
impl Send for MempoolConfigSource
impl Sync for MempoolConfigSource
impl Unpin for MempoolConfigSource
impl UnsafeUnpin for MempoolConfigSource
impl UnwindSafe for MempoolConfigSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.