pub enum NotificationLevel {
Quiet,
Ring,
}
Expand description
Notification ring level for a participant in a conversation.
Variants§
Implementations§
Source§impl NotificationLevel
impl NotificationLevel
Sourcepub fn is_quiet(&self) -> bool
pub fn is_quiet(&self) -> bool
Returns true
if the notification level is Self::Quiet
.
Sourcepub fn is_ring(&self) -> bool
pub fn is_ring(&self) -> bool
Returns true
if the notification level is Self::Ring
.
Trait Implementations§
Source§impl Clone for NotificationLevel
impl Clone for NotificationLevel
Source§fn clone(&self) -> NotificationLevel
fn clone(&self) -> NotificationLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NotificationLevel
impl Debug for NotificationLevel
Source§impl From<NotificationLevel> for NotificationLevel
impl From<NotificationLevel> for NotificationLevel
Source§fn from(val: NotificationLevel) -> Self
fn from(val: NotificationLevel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NotificationLevel
impl PartialEq for NotificationLevel
impl StructuralPartialEq for NotificationLevel
Auto Trait Implementations§
impl Freeze for NotificationLevel
impl RefUnwindSafe for NotificationLevel
impl Send for NotificationLevel
impl Sync for NotificationLevel
impl Unpin for NotificationLevel
impl UnwindSafe for NotificationLevel
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