pub struct WhodUserEntry {
pub tty: String,
pub user_id: String,
pub login_time: DateTime<Utc>,
pub idle_time: Duration,
}Expand description
High-level representation of a single user session in a rwhod status update.
This struct is intended for easier use in Rust code, with proper types.
It can be converted to and from the low-level Whoent struct used for network transmission.
Fields§
§tty: StringTTY name (max 8 characters)
user_id: StringUser ID (max 8 characters)
login_time: DateTime<Utc>Time when the user logged in
idle_time: DurationHow long since the user last typed on the TTY
Implementations§
Trait Implementations§
Source§impl Clone for WhodUserEntry
impl Clone for WhodUserEntry
Source§fn clone(&self) -> WhodUserEntry
fn clone(&self) -> WhodUserEntry
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 WhodUserEntry
impl Debug for WhodUserEntry
Source§impl<'de> Deserialize<'de> for WhodUserEntry
impl<'de> Deserialize<'de> for WhodUserEntry
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 WhodUserEntry
impl PartialEq for WhodUserEntry
Source§impl Serialize for WhodUserEntry
impl Serialize for WhodUserEntry
Source§impl TryFrom<WhodUserEntry> for Whoent
impl TryFrom<WhodUserEntry> for Whoent
Source§impl TryFrom<Whoent> for WhodUserEntry
impl TryFrom<Whoent> for WhodUserEntry
impl Eq for WhodUserEntry
impl StructuralPartialEq for WhodUserEntry
Auto Trait Implementations§
impl Freeze for WhodUserEntry
impl RefUnwindSafe for WhodUserEntry
impl Send for WhodUserEntry
impl Sync for WhodUserEntry
impl Unpin for WhodUserEntry
impl UnwindSafe for WhodUserEntry
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