use super::model::TargetHandle;
use super::native::{NativeInstrumentation, NativeInstrumentationError, NativeTargetHandle};
impl NativeInstrumentation {
pub fn bind_target_identity(
&self,
target_id: impl Into<String>,
generation: u64,
) -> Result<NativeTargetHandle, NativeInstrumentationError> {
self.bind_target(&TargetHandle::new(target_id.into(), generation))
}
}
#[cfg(test)]
#[path = "native_identity/tests.rs"]
mod tests;
#[cfg(all(test, feature = "whole-wasm", not(target_arch = "wasm32")))]
#[path = "native_identity/whole_wasm_tests.rs"]
mod whole_wasm_tests;