pub struct DisplaySession {
pub session_type: SessionType,
pub user_id: u32,
pub username: String,
pub login_time: u64,
pub idle_timeout_ticks: u64,
pub last_activity: u64,
pub locked: bool,
}Expand description
An active display session.
Fields§
§session_type: SessionTypeSession type.
user_id: u32User ID of the session owner.
username: StringUsername.
login_time: u64Tick at which the session was created.
idle_timeout_ticks: u64Idle timeout in ticks (0 = never).
last_activity: u64Last activity tick.
locked: boolWhether the session is locked.
Implementations§
Trait Implementations§
Source§impl Clone for DisplaySession
impl Clone for DisplaySession
Source§fn clone(&self) -> DisplaySession
fn clone(&self) -> DisplaySession
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DisplaySession
impl RefUnwindSafe for DisplaySession
impl Send for DisplaySession
impl Sync for DisplaySession
impl Unpin for DisplaySession
impl UnwindSafe for DisplaySession
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)