pub struct SetupWallet {
pub wallet: Wallet,
pub chain: Chain,
pub key_deriver: Arc<CachedKeyDeriver>,
pub identity_key: String,
pub storage: WalletStorageManager,
pub services: Option<Arc<dyn WalletServices>>,
pub monitor: Option<Arc<Monitor>>,
}Expand description
Result of a successful WalletBuilder::build() call.
Exposes all wired components so callers can access the wallet, storage, services, key deriver, identity key, and monitor independently. This is especially useful for testing and advanced customization scenarios.
Fields§
§wallet: WalletThe fully constructed Wallet instance.
chain: ChainThe chain this wallet operates on.
key_deriver: Arc<CachedKeyDeriver>The key deriver used for Type-42 derivation.
identity_key: StringThe wallet’s identity key as a hex DER public key string.
storage: WalletStorageManagerThe storage manager (shares the same underlying providers as the wallet).
services: Option<Arc<dyn WalletServices>>The services provider, if configured.
monitor: Option<Arc<Monitor>>The monitor, if enabled.
Auto Trait Implementations§
impl !Freeze for SetupWallet
impl !RefUnwindSafe for SetupWallet
impl Send for SetupWallet
impl Sync for SetupWallet
impl Unpin for SetupWallet
impl UnsafeUnpin for SetupWallet
impl !UnwindSafe for SetupWallet
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 more