Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2572092
structs.rs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
612 B
Referenced Files
None
Subscribers
None
structs.rs
View Options
use
psutil
::
process
::
MemoryInfo
;
use
serde
::{
Deserialize
,
Serialize
};
#[derive(Debug, Clone, Deserialize, Serialize)]
pub
struct
PawResult
{
pub
info
:
PawInfo
,
pub
process
:
PawProcess
,
}
#[derive(Debug, Clone, Deserialize, Serialize)]
pub
struct
PawProcess
{
pub
cmd
:
String
,
pub
args
:
Vec
<
String
>
,
}
#[derive(Debug, Clone, Deserialize, Serialize)]
pub
struct
PawInfo
{
pub
uptime
:
u128
,
pub
memory_usage
:
Option
<
MemoryInfo
>
,
pub
cpu_percent
:
Option
<
f32
>
,
}
#[derive(Debug, Clone, Deserialize, Serialize)]
pub
struct
PawDone
{
pub
stdout
:
String
,
pub
code
:
Option
<
i32
>
,
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 15, 9:53 PM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
484888
Default Alt Text
structs.rs (612 B)
Attached To
Mode
R7 Paw
Attached
Detach File
Event Timeline
Log In to Comment