pub trait AbstractNameService: Sized {
// Required method
fn ans_host(&self, deps: Deps<'_>) -> Result<AnsHost, AbstractSdkError>;
// 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§
Provided Methods§
Sourcefn name_service<'a>(
&'a self,
deps: Deps<'a>,
) -> AbstractNameServiceClient<'a, Self>
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", so this trait is not object safe.