Enum wasapi::DisconnectReason
source · pub enum DisconnectReason {
DeviceRemoval,
ServerShutdown,
FormatChanged,
SessionLogoff,
SessionDisconnected,
ExclusiveModeOverride,
Unknown,
}
Expand description
Reason for session disconnect, an enum representing the DisconnectReasonXxx
values of the
AudioSessionDisconnectReason enum
Variants§
DeviceRemoval
The user removed the audio endpoint device.
ServerShutdown
The Windows audio service has stopped.
FormatChanged
The stream format changed for the device that the audio session is connected to.
SessionLogoff
The user logged off the Windows Terminal Services (WTS) session that the audio session was running in.
SessionDisconnected
The WTS session that the audio session was running in was disconnected.
ExclusiveModeOverride
The (shared-mode) audio session was disconnected to make the audio endpoint device available for an exclusive-mode connection.
Unknown
An unknown reason was returned.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DisconnectReason
impl RefUnwindSafe for DisconnectReason
impl Send for DisconnectReason
impl Sync for DisconnectReason
impl Unpin for DisconnectReason
impl UnwindSafe for DisconnectReason
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