Struct gstreamer::event::SelectStreamsBuilder
source · pub struct SelectStreamsBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> SelectStreamsBuilder<'a>
impl<'a> SelectStreamsBuilder<'a>
pub fn seqnum(self, seqnum: Seqnum) -> Self
pub fn seqnum_if(self, seqnum: Seqnum, predicate: bool) -> Self
pub fn seqnum_if_some(self, seqnum: Option<Seqnum>) -> Self
pub fn running_time_offset(self, running_time_offset: i64) -> Self
pub fn running_time_offset_if( self, running_time_offset: i64, predicate: bool, ) -> Self
pub fn running_time_offset_if_some( self, running_time_offset: Option<i64>, ) -> Self
sourcepub fn other_field(self, name: &'a str, value: impl ToSendValue) -> Self
pub fn other_field(self, name: &'a str, value: impl ToSendValue) -> Self
Sets field name
to the given value value
.
Overrides any default or previously defined value for name
.
sourcepub fn other_field_if(
self,
name: &'a str,
value: impl ToSendValue,
predicate: bool,
) -> Self
pub fn other_field_if( self, name: &'a str, value: impl ToSendValue, predicate: bool, ) -> Self
Sets field name
to the given inner value if the predicate
evaluates to true
.
This has no effect if the predicate
evaluates to false
,
i.e. default or previous value for name
is kept.
sourcepub fn other_field_if_some(
self,
name: &'a str,
value: Option<impl ToSendValue>,
) -> Self
pub fn other_field_if_some( self, name: &'a str, value: Option<impl ToSendValue>, ) -> Self
Sets field name
to the given inner value if value
is Some
.
This has no effect if the value is None
, i.e. default or previous value for name
is kept.
sourcepub fn other_field_from_iter<V: ValueType + ToSendValue + FromIterator<SendValue>>(
self,
name: &'a str,
iter: impl IntoIterator<Item = impl ToSendValue>,
) -> Self
pub fn other_field_from_iter<V: ValueType + ToSendValue + FromIterator<SendValue>>( self, name: &'a str, iter: impl IntoIterator<Item = impl ToSendValue>, ) -> Self
Sets field name
using the given ValueType
V
built from iter
’s the Item
s.
Overrides any default or previously defined value for name
.
sourcepub fn other_field_if_not_empty<V: ValueType + ToSendValue + FromIterator<SendValue>>(
self,
name: &'a str,
iter: impl IntoIterator<Item = impl ToSendValue>,
) -> Self
pub fn other_field_if_not_empty<V: ValueType + ToSendValue + FromIterator<SendValue>>( self, name: &'a str, iter: impl IntoIterator<Item = impl ToSendValue>, ) -> Self
Sets field name
using the given ValueType
V
built from iter
’s Items, if
iter` is not empty.
This has no effect if iter
is empty, i.e. previous value for name
is unchanged.
pub fn other_fields( self, other_fields: &[(&'a str, &'a (dyn ToSendValue + Sync))], ) -> Self
👎Deprecated: use build.other_field() instead
pub fn build(self) -> Event
Auto Trait Implementations§
impl<'a> Freeze for SelectStreamsBuilder<'a>
impl<'a> RefUnwindSafe for SelectStreamsBuilder<'a>
impl<'a> Send for SelectStreamsBuilder<'a>
impl<'a> !Sync for SelectStreamsBuilder<'a>
impl<'a> Unpin for SelectStreamsBuilder<'a>
impl<'a> UnwindSafe for SelectStreamsBuilder<'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