pub struct NapiRsBinding;Expand description
napi-rs - Rust to Node.js native modules
Trait Implementations§
Source§impl FfiBinding for NapiRsBinding
impl FfiBinding for NapiRsBinding
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Unique identifier for this binding type (e.g., “pyo3”, “wasm-bindgen”)
Source§fn source_lang(&self) -> &'static str
fn source_lang(&self) -> &'static str
Source language for this binding (e.g., “rust”)
Source§fn target_lang(&self) -> &'static str
fn target_lang(&self) -> &'static str
Target language for this binding (e.g., “python”)
Source§fn detect_in_build_file(&self, path: &Path, content: &str) -> Option<String>
fn detect_in_build_file(&self, path: &Path, content: &str) -> Option<String>
Check if a build file (e.g., Cargo.toml) indicates this binding is used.
Returns the module name if detected.
Source§fn consumer_extensions(&self) -> &[&'static str]
fn consumer_extensions(&self) -> &[&'static str]
File extensions that may contain imports of this binding’s modules.
Auto Trait Implementations§
impl Freeze for NapiRsBinding
impl RefUnwindSafe for NapiRsBinding
impl Send for NapiRsBinding
impl Sync for NapiRsBinding
impl Unpin for NapiRsBinding
impl UnsafeUnpin for NapiRsBinding
impl UnwindSafe for NapiRsBinding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request