pub struct PlatformImpl;

Trait Implementations§

An implementation of Platform for FreeBSD. See Platform for documentation.

Returns a delayed vector of CPU load statistics, one object per CPU (core). Read more
Returns a load average object.
Returns a memory information object.
Returns a swap memory information object.
Returns the system boot time.
Returns a battery life information object.
Returns whether AC power is plugged in.
Returns a vector of filesystem mount information objects.
Returns a filesystem mount information object for the filesystem at a given path.
Returns a map of block device statistics objects
Returns a map of network intefrace information objects. Read more
Returns statistics for a given interface (bytes/packets sent/received)
Returns the current CPU temperature in degrees Celsius. Read more
Returns information about the number of sockets in use
Returns a delayed CPU load statistics object, average over all CPUs (cores). Read more
Returns a swap and a memory information object. On some platforms this is more efficient than calling memory() and swap() separately If memory() or swap() are not implemented for a platform, this function will fail.
Returns the system uptime.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.