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>
This function called to convert napi values to native rust values 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>
This function called to convert rust values to napi values 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>
This function called to validate whether napi value passed to rust is valid type. 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more