pub enum LiquidNetwork {
Mainnet,
Testnet,
Regtest,
}
Expand description
Network chosen for this Liquid SDK instance. Note that it represents both the Liquid and the Bitcoin network used.
Variants§
Mainnet
Mainnet Bitcoin and Liquid chains
Testnet
Testnet Bitcoin and Liquid chains
Regtest
Regtest Bitcoin and Liquid chains
Implementations§
Source§impl LiquidNetwork
impl LiquidNetwork
pub fn as_bitcoin_chain(&self) -> BitcoinChain
Trait Implementations§
Source§impl Clone for LiquidNetwork
impl Clone for LiquidNetwork
Source§fn clone(&self) -> LiquidNetwork
fn clone(&self) -> LiquidNetwork
Returns a copy 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 LiquidNetwork
impl Debug for LiquidNetwork
Source§impl From<LiquidNetwork> for Chain
impl From<LiquidNetwork> for Chain
Source§fn from(value: LiquidNetwork) -> Self
fn from(value: LiquidNetwork) -> Self
Converts to this type from the input type.
Source§impl From<LiquidNetwork> for ElementsNetwork
impl From<LiquidNetwork> for ElementsNetwork
Source§fn from(value: LiquidNetwork) -> Self
fn from(value: LiquidNetwork) -> Self
Converts to this type from the input type.
Source§impl From<LiquidNetwork> for LiquidChain
impl From<LiquidNetwork> for LiquidChain
Source§fn from(value: LiquidNetwork) -> Self
fn from(value: LiquidNetwork) -> Self
Converts to this type from the input type.
Source§impl From<LiquidNetwork> for Network
impl From<LiquidNetwork> for Network
Source§fn from(value: LiquidNetwork) -> Self
fn from(value: LiquidNetwork) -> Self
Converts to this type from the input type.
Source§impl From<LiquidNetwork> for Network
impl From<LiquidNetwork> for Network
Source§fn from(value: LiquidNetwork) -> Self
fn from(value: LiquidNetwork) -> Self
Converts to this type from the input type.
Source§impl From<LiquidNetwork> for Network
impl From<LiquidNetwork> for Network
Source§fn from(value: LiquidNetwork) -> Self
fn from(value: LiquidNetwork) -> Self
Converts to this type from the input type.
Source§impl IntoDart for LiquidNetwork
impl IntoDart for LiquidNetwork
Source§impl IntoIntoDart<LiquidNetwork> for LiquidNetwork
impl IntoIntoDart<LiquidNetwork> for LiquidNetwork
fn into_into_dart(self) -> LiquidNetwork
Source§impl PartialEq for LiquidNetwork
impl PartialEq for LiquidNetwork
Source§impl Serialize for LiquidNetwork
impl Serialize for LiquidNetwork
Source§impl TryFrom<&str> for LiquidNetwork
impl TryFrom<&str> for LiquidNetwork
impl Copy for LiquidNetwork
impl IntoDartExceptPrimitive for LiquidNetwork
impl StructuralPartialEq for LiquidNetwork
Auto Trait Implementations§
impl Freeze for LiquidNetwork
impl Send for LiquidNetwork
impl Sync for LiquidNetwork
impl RefUnwindSafe for LiquidNetwork
impl Unpin for LiquidNetwork
impl UnwindSafe for LiquidNetwork
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request