Trait abstract_sdk::features::AbstractNameService
source · pub trait AbstractNameService: Sized {
// Required method
fn ans_host(&self, deps: Deps<'_>) -> AbstractSdkResult<AnsHost>;
// Provided method
fn name_service<'a>(
&'a self,
deps: Deps<'a>,
) -> AbstractNameServiceClient<'_, Self> { ... }
}
Expand description
ANCHOR: ans Accessor to the Abstract Name Service.
Required Methods§
sourcefn ans_host(&self, deps: Deps<'_>) -> AbstractSdkResult<AnsHost>
fn ans_host(&self, deps: Deps<'_>) -> AbstractSdkResult<AnsHost>
Get the ANS host address.
Provided Methods§
sourcefn name_service<'a>(
&'a self,
deps: Deps<'a>,
) -> AbstractNameServiceClient<'_, Self>
fn name_service<'a>( &'a self, deps: Deps<'a>, ) -> AbstractNameServiceClient<'_, Self>
Construct the name service client.
Object Safety§
This trait is not object safe.