pub struct JsBuildStats {
pub duration_ms: f64,
pub fragment_count: u32,
pub component_count: u32,
pub css_file_count: u32,
pub protocol_size_bytes: u32,
pub token_count: u32,
}Expand description
Build statistics returned from the build function.
Fields§
§duration_ms: f64Build duration in milliseconds.
fragment_count: u32Total number of protocol fragments.
component_count: u32Number of registered components.
css_file_count: u32Number of CSS files produced.
protocol_size_bytes: u32Size of the serialized protocol in bytes.
token_count: u32Number of unique CSS tokens discovered.
Trait Implementations§
Source§impl FromNapiValue for JsBuildStats
impl FromNapiValue for JsBuildStats
Source§unsafe fn from_napi_value(
env: napi_env,
napi_val: napi_value,
) -> Result<JsBuildStats>
unsafe fn from_napi_value( env: napi_env, napi_val: napi_value, ) -> Result<JsBuildStats>
Safety Read more
fn from_unknown(value: Unknown<'_>) -> Result<Self, Error>
Source§impl ToNapiValue for JsBuildStats
impl ToNapiValue for JsBuildStats
Source§unsafe fn to_napi_value(env: napi_env, val: JsBuildStats) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: JsBuildStats) -> Result<napi_value>
Safety Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for JsBuildStats
impl TypeName for JsBuildStats
Source§impl ValidateNapiValue for JsBuildStats
impl ValidateNapiValue for JsBuildStats
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 JsBuildStats
impl RefUnwindSafe for JsBuildStats
impl Send for JsBuildStats
impl Sync for JsBuildStats
impl Unpin for JsBuildStats
impl UnsafeUnpin for JsBuildStats
impl UnwindSafe for JsBuildStats
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