Struct gstreamer_validate::ActionTypeBuilder
source · pub struct ActionTypeBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> ActionTypeBuilder<'a>
impl<'a> ActionTypeBuilder<'a>
pub fn new<F: Fn(&Scenario, &mut ActionRef) -> Result<ActionSuccess, ActionError> + Send + Sync + 'static>( type_name: &'a str, func: F, ) -> Self
pub fn implementer_namespace(self, implementer_namespace: &'a str) -> Self
pub fn implementer_namespace_if( self, implementer_namespace: &'a str, predicate: bool, ) -> Self
pub fn implementer_namespace_if_some( self, implementer_namespace: Option<&'a str>, ) -> Self
pub fn description(self, description: &'a str) -> Self
pub fn description_if(self, description: &'a str, predicate: bool) -> Self
pub fn description_if_some(self, description: Option<&'a str>) -> Self
pub fn parameter(self, parameter: ActionParameter) -> Self
pub fn parameter_if(self, parameter: ActionParameter, predicate: bool) -> Self
pub fn parameter_if_some(self, parameter: Option<ActionParameter>) -> Self
pub fn flags(self, flags: ActionTypeFlags) -> Self
pub fn flags_if(self, flags: ActionTypeFlags, predicate: bool) -> Self
pub fn flags_if_some(self, flags: Option<ActionTypeFlags>) -> Self
pub fn build(self) -> ActionType
Auto Trait Implementations§
impl<'a> Freeze for ActionTypeBuilder<'a>
impl<'a> !RefUnwindSafe for ActionTypeBuilder<'a>
impl<'a> !Send for ActionTypeBuilder<'a>
impl<'a> !Sync for ActionTypeBuilder<'a>
impl<'a> Unpin for ActionTypeBuilder<'a>
impl<'a> !UnwindSafe for ActionTypeBuilder<'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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more