Skip to main content

AbstractNameService

Trait 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<'a, Self> { ... }
}
Expand description

ANCHOR: ans Accessor to the Abstract Name Service.

Required Methods§

Source

fn ans_host(&self, deps: Deps<'_>) -> AbstractSdkResult<AnsHost>

Get the ANS host address.

Provided Methods§

Source

fn name_service<'a>( &'a self, deps: Deps<'a>, ) -> AbstractNameServiceClient<'a, Self>

Construct the name service client.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§