pub struct BatchResult {
pub outputs: Vec<Float32Array>,
pub elapsed_ms: f64,
pub throughput: f64,
}Expand description
Batch processing result
Fields§
§outputs: Vec<Float32Array>§elapsed_ms: f64§throughput: f64Trait Implementations§
Source§impl FromNapiValue for BatchResult
impl FromNapiValue for BatchResult
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for BatchResult
impl ToNapiValue for BatchResult
Source§unsafe fn to_napi_value(env: napi_env, val: BatchResult) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: BatchResult) -> Result<napi_value>
Safety Read more
Source§impl TypeName for BatchResult
impl TypeName for BatchResult
Source§impl ValidateNapiValue for BatchResult
impl ValidateNapiValue for BatchResult
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for BatchResult
impl !RefUnwindSafe for BatchResult
impl Send for BatchResult
impl !Sync for BatchResult
impl Unpin for BatchResult
impl UnsafeUnpin for BatchResult
impl !UnwindSafe for BatchResult
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