pub enum Sound {
Default,
Custom(String),
}
Expand description
Helper to determine whether you want to play the default sound or custom one
Variants§
Default
notification plays the sound NSUserNotificationDefaultSoundName
Custom(String)
notification plays your custom sound
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sound
impl RefUnwindSafe for Sound
impl Send for Sound
impl Sync for Sound
impl Unpin for Sound
impl UnwindSafe for Sound
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