pub struct SigningClientPoolManager {
pub mnemonic: String,
pub derivation_index: AtomicU32,
pub chain_config: ChainConfig,
pub balance_maintainer: Option<BalanceMaintainer>,
pub cache: ClimbCache,
pub connection: Connection,
}Expand description
Currently this only works with mnemonic phrases
Fields§
§mnemonic: String§derivation_index: AtomicU32§chain_config: ChainConfig§balance_maintainer: Option<BalanceMaintainer>§cache: ClimbCache§connection: ConnectionImplementations§
Source§impl SigningClientPoolManager
impl SigningClientPoolManager
pub fn new_mnemonic( mnemonic: String, chain_config: ChainConfig, start_index: Option<u32>, connection: Option<Connection>, ) -> SigningClientPoolManager
pub async fn address(&self, index: u32) -> Result<Address, PoolError<Error>>
pub async fn with_minimum_balance( self, threshhold: u128, amount: u128, funder: Option<SigningClient>, denom: Option<String>, ) -> Result<SigningClientPoolManager, Error>
Trait Implementations§
Source§impl Manager for SigningClientPoolManager
impl Manager for SigningClientPoolManager
Source§async fn create(&self) -> Result<SigningClient, Error>
async fn create(&self) -> Result<SigningClient, Error>
Creates a new instance of
Manager::Type.Source§async fn recycle(
&self,
client: &mut SigningClient,
_: &Metrics,
) -> Result<(), RecycleError<Error>>
async fn recycle( &self, client: &mut SigningClient, _: &Metrics, ) -> Result<(), RecycleError<Error>>
Tries to recycle an instance of
Manager::Type. Read moreAuto Trait Implementations§
impl !Freeze for SigningClientPoolManager
impl !RefUnwindSafe for SigningClientPoolManager
impl Send for SigningClientPoolManager
impl Sync for SigningClientPoolManager
impl Unpin for SigningClientPoolManager
impl !UnwindSafe for SigningClientPoolManager
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> 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 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