[][src]Struct windows_service::service::SessionChangeParam

pub struct SessionChangeParam {
    pub reason: SessionChangeReason,
    pub notification: SessionNotification,
}

Struct describing the SessionChange event

Fields

reason: SessionChangeReasonnotification: SessionNotification

Implementations

impl SessionChangeParam[src]

pub unsafe fn from_event(
    event_type: u32,
    event_data: *mut c_void
) -> Result<Self, ParseRawError>
[src]

Extract SessionChangeParam from event_data

Safety

The event_data must be a valid winuser::WTSSESSION_NOTIFICATION pointer. Otherwise, it is undefined behavior.

Trait Implementations

impl Clone for SessionChangeParam[src]

impl Copy for SessionChangeParam[src]

impl Debug for SessionChangeParam[src]

impl Eq for SessionChangeParam[src]

impl Hash for SessionChangeParam[src]

impl PartialEq<SessionChangeParam> for SessionChangeParam[src]

impl StructuralEq for SessionChangeParam[src]

impl StructuralPartialEq for SessionChangeParam[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.