Registry / networking / abstract-ns

abstract-ns

JSON →
library0.4.3rscratesunverified

Provides abstract name service traits for use with futures and tokio.

# Cargo.toml [dependencies] abstract-ns = "0.4.3"
INSTALL
IMPORT
SIG · ABSTRACT-NS
A
abstract-ns
networkingrustv0.4.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NameService
use abstract_ns::NameService;

Implements the NameService trait for a custom resolver.

use abstract_ns::NameService; use futures::Future; struct MyNs; impl NameService for MyNs { type Error = (); type Future = Box<dyn Future<Item = (), Error = ()>>; fn resolve(&self, _name: &str) -> Self::Future { Box::new(futures::future::ok(())) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
56 hits · last 30 days
node
44
OpenAI (training)
1
Resources
abstract-ns — cargo add abstract-ns · libregistry