pub struct LiquidSdkBuilder { /* private fields */ }
Implementations§
Source§impl LiquidSdkBuilder
impl LiquidSdkBuilder
pub fn new( config: Config, server_url: String, signer: Arc<Box<dyn Signer>>, ) -> Result<LiquidSdkBuilder>
pub fn bitcoin_chain_service( &mut self, bitcoin_chain_service: Arc<dyn BitcoinChainService>, ) -> &mut Self
pub fn liquid_chain_service( &mut self, liquid_chain_service: Arc<dyn LiquidChainService>, ) -> &mut Self
pub fn recoverer(&mut self, recoverer: Arc<Recoverer>) -> &mut Self
pub fn onchain_wallet( &mut self, onchain_wallet: Arc<dyn OnchainWallet>, ) -> &mut Self
pub fn persister(&mut self, persister: Arc<Persister>) -> &mut Self
pub fn rest_client(&mut self, rest_client: Arc<dyn RestClient>) -> &mut Self
pub fn status_stream( &mut self, status_stream: Arc<dyn SwapperStatusStream>, ) -> &mut Self
pub fn swapper(&mut self, swapper: Arc<dyn Swapper>) -> &mut Self
pub fn sync_service(&mut self, sync_service: Arc<SyncService>) -> &mut Self
pub fn build(&self) -> Result<Arc<LiquidSdk>>
Auto Trait Implementations§
impl Freeze for LiquidSdkBuilder
impl Send for LiquidSdkBuilder
impl Sync for LiquidSdkBuilder
impl !RefUnwindSafe for LiquidSdkBuilder
impl Unpin for LiquidSdkBuilder
impl !UnwindSafe for LiquidSdkBuilder
Blanket Implementations§
§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
§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