pub enum ServiceEvent<T> {
Continue,
Pause,
Stop,
SessionConnect(Session),
SessionDisconnect(Session),
SessionRemoteConnect(Session),
SessionRemoteDisconnect(Session),
SessionLogon(Session),
SessionLogoff(Session),
SessionLock(Session),
SessionUnlock(Session),
Custom(T),
}Expand description
The events that can be sent to the service handler
Variants§
Continue
Continue a previously paused service
Pause
Pause the service
Stop
Stop the service
SessionConnect(Session)
Windows specific session message
SessionDisconnect(Session)
Windows specific session message
SessionRemoteConnect(Session)
Windows specific session message
SessionRemoteDisconnect(Session)
Windows specific session message
SessionLogon(Session)
Windows specific session message
SessionLogoff(Session)
Windows specific session message
SessionLock(Session)
Windows specific session message
SessionUnlock(Session)
Windows specific session message
Custom(T)
A custom message for the service
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ServiceEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for ServiceEvent<T>where
T: RefUnwindSafe,
impl<T> Send for ServiceEvent<T>where
T: Send,
impl<T> Sync for ServiceEvent<T>where
T: Sync,
impl<T> Unpin for ServiceEvent<T>where
T: Unpin,
impl<T> UnwindSafe for ServiceEvent<T>where
T: UnwindSafe,
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