pub struct PushSound {
pub critical: usize,
pub name: String,
pub volume: f32,
}Expand description
Sound that is played through the device’s speakers when a push notification arrives.
Fields§
§critical: usizeEnables “critical” push sound.
name: StringName of the sound file in the app’s bundle that will be played.
volume: f32Volume that will be used to play the sound.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PushSound
impl RefUnwindSafe for PushSound
impl Send for PushSound
impl Sync for PushSound
impl Unpin for PushSound
impl UnwindSafe for PushSound
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