#[repr(C)]pub struct Outmp {
pub out_line: [u8; 8],
pub out_name: [u8; 8],
pub out_time: i32,
}Expand description
Classic C struct for utmp data for a single user session.
This struct is used in the rwhod protocol by being interpreted as raw bytes to be sent over UDP.
Fields§
§out_line: [u8; 8]tty name
out_name: [u8; 8]user id
out_time: i32time on
Implementations§
Source§impl Outmp
impl Outmp
pub const MAX_TTY_NAME_LEN: usize = 8
pub const MAX_USER_ID_LEN: usize = 8
Trait Implementations§
impl Eq for Outmp
impl StructuralPartialEq for Outmp
Auto Trait Implementations§
impl Freeze for Outmp
impl RefUnwindSafe for Outmp
impl Send for Outmp
impl Sync for Outmp
impl Unpin for Outmp
impl UnwindSafe for Outmp
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