#[repr(i64)]pub enum UNShowPreviewsSetting {
Always = 0,
WhenAuthenticated = 1,
Never = 2,
}
Expand description
Constants indicating the style previewing a notification’s content.
Variants§
Always = 0
The notification’s content is always shown, even when the device is locked.
WhenAuthenticated = 1
The notification’s content is shown only when the device is unlocked.
Never = 2
The notification’s content is never shown, even when the device is unlocked
Trait Implementations§
Source§impl Clone for UNShowPreviewsSetting
impl Clone for UNShowPreviewsSetting
Source§fn clone(&self) -> UNShowPreviewsSetting
fn clone(&self) -> UNShowPreviewsSetting
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UNShowPreviewsSetting
impl Debug for UNShowPreviewsSetting
Source§impl Ord for UNShowPreviewsSetting
impl Ord for UNShowPreviewsSetting
Source§fn cmp(&self, other: &UNShowPreviewsSetting) -> Ordering
fn cmp(&self, other: &UNShowPreviewsSetting) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UNShowPreviewsSetting
impl PartialEq for UNShowPreviewsSetting
Source§impl PartialOrd for UNShowPreviewsSetting
impl PartialOrd for UNShowPreviewsSetting
impl Copy for UNShowPreviewsSetting
impl Eq for UNShowPreviewsSetting
impl StructuralPartialEq for UNShowPreviewsSetting
Auto Trait Implementations§
impl Freeze for UNShowPreviewsSetting
impl RefUnwindSafe for UNShowPreviewsSetting
impl Send for UNShowPreviewsSetting
impl Sync for UNShowPreviewsSetting
impl Unpin for UNShowPreviewsSetting
impl UnwindSafe for UNShowPreviewsSetting
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