Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

libdd-capabilities-impl

Native implementations of libdd-capabilities traits.

Overview

libdd-capabilities-impl provides platform-native backends for the capability traits defined in libdd-capabilities. It is the concrete implementation used by native leaf crates (FFI bindings, benchmarks, tests) and should not be depended on by core library crates.

Capabilities

  • NativeHttpClient: HTTP client backed by hyper and the libdd-common connector infrastructure (supports Unix sockets, HTTPS with rustls, Windows named pipes).
  • NativeSleepCapability: Sleep backed by tokio::time::sleep.

Task spawning is handled internally by SharedRuntime and is not exposed as a capability trait.

Types

  • NativeCapabilities: Bundle struct that implements HTTP and sleep capability traits using native backends. Delegates to NativeHttpClient and NativeSleepCapability.

Usage

Native leaf crates pin the concrete capability type:

use libdd_capabilities_impl::NativeCapabilities;
use libdd_data_pipeline::TraceExporter;

let exporter: TraceExporter<NativeCapabilities> = TraceExporterBuilder::new(/* ... */).build();