pub struct Params(/* private fields */);Available on crate features
audio only.Implementations§
Source§impl Params
impl Params
Sourcepub fn set(&mut self, name: &str, value: &[u8]) -> bool
pub fn set(&mut self, name: &str, value: &[u8]) -> bool
Set param entry by name returns whether the given name was recognized
and hence updated or not
Sourcepub fn get(&self, name: &str) -> Option<&[u8]>
pub fn get(&self, name: &str) -> Option<&[u8]>
Look up parameter by name, returns None if name was not recognized
Sourcepub fn keys<'ret>(&self) -> impl Iterator<Item = &'ret str> + use<'ret>
pub fn keys<'ret>(&self) -> impl Iterator<Item = &'ret str> + use<'ret>
Return an iterator enumerating all valid parameter names
pub fn as_ptr(&self) -> *const Params
pub fn into_raw(self) -> Params
Trait Implementations§
impl Eq for Params
impl StructuralPartialEq for Params
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