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 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 SessionChangeParam
impl Debug for SessionChangeParam
Source§impl Hash for SessionChangeParam
impl Hash for SessionChangeParam
Source§impl PartialEq for SessionChangeParam
impl PartialEq for SessionChangeParam
impl Copy for SessionChangeParam
impl Eq for SessionChangeParam
impl StructuralPartialEq for SessionChangeParam
Auto Trait Implementations§
impl Freeze for SessionChangeParam
impl RefUnwindSafe for SessionChangeParam
impl Send for SessionChangeParam
impl Sync for SessionChangeParam
impl Unpin for SessionChangeParam
impl UnwindSafe for SessionChangeParam
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