pub struct WhodStatusUpdate {
pub sendtime: DateTime<Utc>,
pub recvtime: Option<DateTime<Utc>>,
pub hostname: String,
pub load_average: LoadAverage,
pub boot_time: DateTime<Utc>,
pub users: Vec<WhodUserEntry>,
}Expand description
High-level representation of a rwhod status update.
This struct is intended for easier use in Rust code, with proper types and dynamic arrays.
It can be converted to and from the low-level Whod struct used for network transmission.
Fields§
§sendtime: DateTime<Utc>Timestamp by sender
recvtime: Option<DateTime<Utc>>Timestamp applied by receiver
hostname: StringName of the host sending the status update (max 32 characters)
load_average: LoadAverageload average over 5, 10, and 15 minutes multiplied by 100
boot_time: DateTime<Utc>Which time the system was booted
users: Vec<WhodUserEntry>List of users currently logged in to the host (max 42 entries)
Implementations§
Trait Implementations§
Source§impl Clone for WhodStatusUpdate
impl Clone for WhodStatusUpdate
Source§fn clone(&self) -> WhodStatusUpdate
fn clone(&self) -> WhodStatusUpdate
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 WhodStatusUpdate
impl Debug for WhodStatusUpdate
Source§impl<'de> Deserialize<'de> for WhodStatusUpdate
impl<'de> Deserialize<'de> for WhodStatusUpdate
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 PartialEq for WhodStatusUpdate
impl PartialEq for WhodStatusUpdate
Source§impl Serialize for WhodStatusUpdate
impl Serialize for WhodStatusUpdate
Source§impl TryFrom<Whod> for WhodStatusUpdate
impl TryFrom<Whod> for WhodStatusUpdate
Source§impl TryFrom<WhodStatusUpdate> for Whod
impl TryFrom<WhodStatusUpdate> for Whod
impl Eq for WhodStatusUpdate
impl StructuralPartialEq for WhodStatusUpdate
Auto Trait Implementations§
impl Freeze for WhodStatusUpdate
impl RefUnwindSafe for WhodStatusUpdate
impl Send for WhodStatusUpdate
impl Sync for WhodStatusUpdate
impl Unpin for WhodStatusUpdate
impl UnwindSafe for WhodStatusUpdate
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