Struct voicemeeter::interface::parameters::StringParameter
source · pub struct StringParameter<'a, const WRITE: bool = true, const READ: bool = true> {
pub name: Cow<'a, ParameterNameRef>,
/* private fields */
}
Available on crate feature
interface
only.Expand description
A string parameter
Fields§
§name: Cow<'a, ParameterNameRef>
The name of the parameter, fully qualified
Implementations§
source§impl<'a, const READ: bool> StringParameter<'a, true, READ>
impl<'a, const READ: bool> StringParameter<'a, true, READ>
source§impl<'a, const WRITE: bool> StringParameter<'a, WRITE, true>
impl<'a, const WRITE: bool> StringParameter<'a, WRITE, true>
sourcepub fn get(&self) -> Result<String, GetParameterError>
pub fn get(&self) -> Result<String, GetParameterError>
Get the value of this parameter
Auto Trait Implementations§
impl<'a, const WRITE: bool, const READ: bool> RefUnwindSafe for StringParameter<'a, WRITE, READ>
impl<'a, const WRITE: bool, const READ: bool> Send for StringParameter<'a, WRITE, READ>
impl<'a, const WRITE: bool, const READ: bool> Sync for StringParameter<'a, WRITE, READ>
impl<'a, const WRITE: bool, const READ: bool> Unpin for StringParameter<'a, WRITE, READ>
impl<'a, const WRITE: bool, const READ: bool> UnwindSafe for StringParameter<'a, WRITE, READ>
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