pub struct ParameterUpdate<'a> { /* private fields */ }Expand description
Batch parameter update
Implementations§
Source§impl<'a> ParameterUpdate<'a>
impl<'a> ParameterUpdate<'a>
Sourcepub fn apply(self) -> Result<()>
pub fn apply(self) -> Result<()>
Apply the queued parameter updates, in the order they were set.
§This batch is not atomic
The first failure stops the batch and is returned. The updates queued before it have
already reached the plugin and are not rolled back; the ones after it were never
attempted, and the error does not say how far the batch got. Call
Plugin::set_parameter per parameter if you need to
know which landed, or re-read them with
Plugin::get_parameters afterwards.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ParameterUpdate<'a>
impl<'a> !Sync for ParameterUpdate<'a>
impl<'a> !UnwindSafe for ParameterUpdate<'a>
impl<'a> Freeze for ParameterUpdate<'a>
impl<'a> Send for ParameterUpdate<'a>
impl<'a> Unpin for ParameterUpdate<'a>
impl<'a> UnsafeUnpin for ParameterUpdate<'a>
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