pub struct AppResources {
pub user_time: u32,
pub system_time: u32,
pub mem_used: u64,
pub mem_max: u64,
pub fd_open: u32,
pub fd_max: u32,
pub conn_open: u32,
pub conn_max: u32,
}Expand description
App Resources - Format (0,2203)
Application resource usage
§XDR Definition (sFlow Application)
/* Application resources */
/* opaque = counter_data; enterprise = 0; format = 2203 */
struct app_resources {
unsigned int user_time; /* user time (ms) */
unsigned int system_time; /* system time (ms) */
unsigned hyper mem_used; /* memory used in bytes */
unsigned hyper mem_max; /* max memory in bytes */
unsigned int fd_open; /* open file descriptors */
unsigned int fd_max; /* max file descriptors */
unsigned int conn_open; /* open network connections */
unsigned int conn_max; /* max network connections */
}Fields§
§user_time: u32User time in milliseconds
system_time: u32System time in milliseconds
mem_used: u64Memory used in bytes
mem_max: u64Maximum memory in bytes
fd_open: u32Number of open file descriptors
fd_max: u32Maximum number of file descriptors
conn_open: u32Number of open connections
conn_max: u32Maximum number of connections
Trait Implementations§
Source§impl Clone for AppResources
impl Clone for AppResources
Source§fn clone(&self) -> AppResources
fn clone(&self) -> AppResources
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppResources
impl Debug for AppResources
Source§impl PartialEq for AppResources
impl PartialEq for AppResources
impl Eq for AppResources
impl StructuralPartialEq for AppResources
Auto Trait Implementations§
impl Freeze for AppResources
impl RefUnwindSafe for AppResources
impl Send for AppResources
impl Sync for AppResources
impl Unpin for AppResources
impl UnwindSafe for AppResources
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