#[repr(u32)]pub enum SessionChangeReason {
ConsoleConnect = 1,
ConsoleDisconnect = 2,
RemoteConnect = 3,
RemoteDisconnect = 4,
SessionLogon = 5,
SessionLogoff = 6,
SessionLock = 7,
SessionUnlock = 8,
SessionRemoteControl = 9,
SessionCreate = 10,
SessionTerminate = 11,
}Expand description
Enum describing the reason of a SessionChange event
Variants§
ConsoleConnect = 1
ConsoleDisconnect = 2
RemoteConnect = 3
RemoteDisconnect = 4
SessionLogon = 5
SessionLogoff = 6
SessionLock = 7
SessionUnlock = 8
SessionRemoteControl = 9
SessionCreate = 10
SessionTerminate = 11
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 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 SessionChangeReason
impl Debug for SessionChangeReason
Source§impl Hash for SessionChangeReason
impl Hash for SessionChangeReason
Source§impl PartialEq for SessionChangeReason
impl PartialEq for SessionChangeReason
impl Copy for SessionChangeReason
impl Eq for SessionChangeReason
impl StructuralPartialEq for SessionChangeReason
Auto Trait Implementations§
impl Freeze for SessionChangeReason
impl RefUnwindSafe for SessionChangeReason
impl Send for SessionChangeReason
impl Sync for SessionChangeReason
impl Unpin for SessionChangeReason
impl UnwindSafe for SessionChangeReason
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