#[repr(u32)]
pub enum SessionChangeReason {
ConsoleConnect,
ConsoleDisconnect,
RemoteConnect,
RemoteDisconnect,
SessionLogon,
SessionLogoff,
SessionLock,
SessionUnlock,
SessionRemoteControl,
SessionCreate,
SessionTerminate,
}Expand description
Enum describing the reason of a SessionChange event
Variants§
ConsoleConnect
ConsoleDisconnect
RemoteConnect
RemoteDisconnect
SessionLogon
SessionLogoff
SessionLock
SessionUnlock
SessionRemoteControl
SessionCreate
SessionTerminate
Implementations§
source§impl SessionChangeReason
impl SessionChangeReason
pub fn from_raw(raw: u32) -> Result<SessionChangeReason, ParseRawError>
pub fn to_raw(&self) -> u32
Trait Implementations§
source§impl Clone for SessionChangeReason
impl Clone for SessionChangeReason
source§fn clone(&self) -> SessionChangeReason
fn clone(&self) -> SessionChangeReason
Returns a copy 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 SessionChangeReason
impl Debug for SessionChangeReason
source§impl Hash for SessionChangeReason
impl Hash for SessionChangeReason
source§impl PartialEq<SessionChangeReason> for SessionChangeReason
impl PartialEq<SessionChangeReason> for SessionChangeReason
source§fn eq(&self, other: &SessionChangeReason) -> bool
fn eq(&self, other: &SessionChangeReason) -> bool
This method tests for
self and other values to be equal, and is used
by ==.