[][src]Struct nj_core::val::JsCallbackFunction

pub struct JsCallbackFunction { /* fields omitted */ }

Js callback function

Implementations

impl JsCallbackFunction[src]

pub fn call<T>(&self, rust_argv: Vec<T>) -> Result<napi_value, NjError> where
    T: TryIntoJs
[src]

invoke

Trait Implementations

impl<'_> JSValue<'_> for JsCallbackFunction[src]

impl Send for JsCallbackFunction[src]

impl Sync for JsCallbackFunction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.