Struct windows_service::service::SessionChangeParam
source · pub struct SessionChangeParam {
pub reason: SessionChangeReason,
pub notification: SessionNotification,
}Expand description
Struct describing the SessionChange event
Fields§
§reason: SessionChangeReason§notification: SessionNotificationImplementations§
source§impl SessionChangeParam
impl SessionChangeParam
sourcepub unsafe fn from_event(
event_type: u32,
event_data: *mut c_void
) -> Result<Self, ParseRawError>
pub unsafe fn from_event( event_type: u32, event_data: *mut c_void ) -> Result<Self, ParseRawError>
Extract SessionChangeParam from event_data
Safety
The event_data must be a valid RemoteDesktop::WTSSESSION_NOTIFICATION pointer.
Otherwise, it is undefined behavior.
Trait Implementations§
source§impl Clone for SessionChangeParam
impl Clone for SessionChangeParam
source§fn clone(&self) -> SessionChangeParam
fn clone(&self) -> SessionChangeParam
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 SessionChangeParam
impl Debug for SessionChangeParam
source§impl Hash for SessionChangeParam
impl Hash for SessionChangeParam
source§impl PartialEq<SessionChangeParam> for SessionChangeParam
impl PartialEq<SessionChangeParam> for SessionChangeParam
source§fn eq(&self, other: &SessionChangeParam) -> bool
fn eq(&self, other: &SessionChangeParam) -> bool
This method tests for
self and other values to be equal, and is used
by ==.