#[non_exhaustive]pub enum RecoveryHint {
None,
Retry,
RequestPermission,
ReenumerateDevice,
ChangeConfiguration,
EnableBackend,
DropFrame,
ReduceResourceUsage,
}Expand description
Conservative action a caller can take without inspecting backend text.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
The None variant.
Retry
The Retry variant.
RequestPermission
The RequestPermission variant.
ReenumerateDevice
The ReenumerateDevice variant.
ChangeConfiguration
The ChangeConfiguration variant.
EnableBackend
The EnableBackend variant.
DropFrame
The DropFrame variant.
ReduceResourceUsage
The ReduceResourceUsage variant.
Implementations§
Source§impl RecoveryHint
impl RecoveryHint
Trait Implementations§
Source§impl Clone for RecoveryHint
impl Clone for RecoveryHint
impl Copy for RecoveryHint
Source§impl Debug for RecoveryHint
impl Debug for RecoveryHint
Source§impl<'de> Deserialize<'de> for RecoveryHint
impl<'de> Deserialize<'de> for RecoveryHint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RecoveryHint
impl Display for RecoveryHint
impl Eq for RecoveryHint
Source§impl FromStr for RecoveryHint
impl FromStr for RecoveryHint
Source§impl Hash for RecoveryHint
impl Hash for RecoveryHint
Source§impl PartialEq for RecoveryHint
impl PartialEq for RecoveryHint
Source§impl Serialize for RecoveryHint
impl Serialize for RecoveryHint
impl StructuralPartialEq for RecoveryHint
Auto Trait Implementations§
impl Forget for RecoveryHint
impl Freeze for RecoveryHint
impl RefUnwindSafe for RecoveryHint
impl Send for RecoveryHint
impl Sync for RecoveryHint
impl Unpin for RecoveryHint
impl UnsafeUnpin for RecoveryHint
impl UnwindSafe for RecoveryHint
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