pub enum NotificationSound {
Default,
None,
Local(NotificationSoundLocal),
Ringtone(NotificationSoundRingtone),
}Expand description
Variants§
Trait Implementations§
Source§impl Clone for NotificationSound
impl Clone for NotificationSound
Source§fn clone(&self) -> NotificationSound
fn clone(&self) -> NotificationSound
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 NotificationSound
impl Debug for NotificationSound
Source§impl Deserializable for NotificationSound
impl Deserializable for NotificationSound
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<NotificationSoundDefault> for NotificationSound
impl From<NotificationSoundDefault> for NotificationSound
Source§fn from(_x: NotificationSoundDefault) -> Self
fn from(_x: NotificationSoundDefault) -> Self
Converts to this type from the input type.
Source§impl From<NotificationSoundLocal> for NotificationSound
impl From<NotificationSoundLocal> for NotificationSound
Source§fn from(x: NotificationSoundLocal) -> Self
fn from(x: NotificationSoundLocal) -> Self
Converts to this type from the input type.
Source§impl From<NotificationSoundNone> for NotificationSound
impl From<NotificationSoundNone> for NotificationSound
Source§fn from(_x: NotificationSoundNone) -> Self
fn from(_x: NotificationSoundNone) -> Self
Converts to this type from the input type.
Source§impl From<NotificationSoundRingtone> for NotificationSound
impl From<NotificationSoundRingtone> for NotificationSound
Source§fn from(x: NotificationSoundRingtone) -> Self
fn from(x: NotificationSoundRingtone) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NotificationSound
impl PartialEq for NotificationSound
Source§impl Serializable for NotificationSound
impl Serializable for NotificationSound
Source§impl TryFrom<NotificationSound> for NotificationSoundLocal
impl TryFrom<NotificationSound> for NotificationSoundLocal
Source§type Error = NotificationSound
type Error = NotificationSound
The type returned in the event of a conversion error.
Source§impl TryFrom<NotificationSound> for NotificationSoundRingtone
impl TryFrom<NotificationSound> for NotificationSoundRingtone
Source§type Error = NotificationSound
type Error = NotificationSound
The type returned in the event of a conversion error.
impl StructuralPartialEq for NotificationSound
Auto Trait Implementations§
impl Freeze for NotificationSound
impl RefUnwindSafe for NotificationSound
impl Send for NotificationSound
impl Sync for NotificationSound
impl Unpin for NotificationSound
impl UnsafeUnpin for NotificationSound
impl UnwindSafe for NotificationSound
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