Struct SigningClientPoolManager
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§
§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§
§impl Manager for SigningClientPoolManager
impl Manager for SigningClientPoolManager
§type Type = SigningClient
type Type = SigningClient
Type of [
Object]s that this [Manager] creates and recycles.§async fn create(&self) -> Result<SigningClient, Error>
async fn create(&self) -> Result<SigningClient, Error>
Creates a new instance of [
Manager::Type].Auto 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§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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>
§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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].