pub struct ActionParameterBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> ActionParameterBuilder<'a>
impl<'a> ActionParameterBuilder<'a>
pub fn new(name: &'a str, description: &'a str) -> Self
sourcepub fn add_possible_variable(self, possible_variables: &str) -> Self
pub fn add_possible_variable(self, possible_variables: &str) -> Self
The name of the variables that can be used to compute the value of the parameter. For example for the start value of a seek action, we will accept to take ‘duration’ which will be replace by the total duration of the stream on which the action is executed.
pub fn mandatory(self) -> Self
pub fn default_value(self, default_value: &'a str) -> Self
sourcepub fn add_type(self, types: &str) -> Self
pub fn add_type(self, types: &str) -> Self
The types the parameter can take described as a string.
NOTE: The types should end with (GstClockTime)
if
its final type is a GstClockTime, this way it will be processed when
preparing the actions.
pub fn build(self) -> ActionParameter
Auto Trait Implementations§
impl<'a> Freeze for ActionParameterBuilder<'a>
impl<'a> RefUnwindSafe for ActionParameterBuilder<'a>
impl<'a> Send for ActionParameterBuilder<'a>
impl<'a> Sync for ActionParameterBuilder<'a>
impl<'a> Unpin for ActionParameterBuilder<'a>
impl<'a> UnwindSafe for ActionParameterBuilder<'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