pub struct Params {
pub oss_device: *const c_char,
pub alsa_device: *const c_char,
pub nas_server: *const c_char,
pub pulse_device: *const c_char,
pub pulse_min_length: *const c_char,
/* private fields */
}Expand description
Server settable audio output parameters
Fields§
§oss_device: *const c_char§alsa_device: *const c_char§nas_server: *const c_char§pulse_device: *const c_char§pulse_min_length: *const c_charImplementations§
Source§impl Params
impl Params
pub const FIELDS: [&'static str; 5]
Sourcepub unsafe fn set_by_name(&mut self, name: &str, value: *const c_char) -> bool
pub unsafe fn set_by_name(&mut self, name: &str, value: *const c_char) -> bool
Helper method to update param struct entries by name
§Safety
Previous value at the field potentially replaced must either be
ptr::null() or a pointer allocated by
free. In other words don’t ever store invalid or
non-malloc’d pointers in the struct.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Params
impl !Sync for Params
impl Freeze for Params
impl RefUnwindSafe for Params
impl Unpin for Params
impl UnsafeUnpin for Params
impl UnwindSafe for Params
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