pub struct SysInfo {
pub global: Global,
pub cpu_usage: f32,
pub disk_usage: DiskUsage,
pub memory: u64,
pub virtual_memory: u64,
}Expand description
System’s information.
Fields§
§global: Globalglobal system information
cpu_usage: f32Returns the total ckb CPU usage (in %). Notice that it might be bigger than 100 if run on a multi-core machine.
disk_usage: DiskUsageReturns number of bytes ckb read and written to disk.
memory: u64Returns the memory ckb usage (in bytes).
virtual_memory: u64Returns the virtual memory usage (in bytes).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SysInfo
impl<'de> Deserialize<'de> for SysInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for SysInfo
impl JsonSchema for SysInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SysInfo
impl RefUnwindSafe for SysInfo
impl Send for SysInfo
impl Sync for SysInfo
impl Unpin for SysInfo
impl UnsafeUnpin for SysInfo
impl UnwindSafe for SysInfo
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