Struct gstreamer::message::ClockLostBuilder
source · pub struct ClockLostBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> ClockLostBuilder<'a>
impl<'a> ClockLostBuilder<'a>
pub fn src<O: IsA<Object> + Cast + Clone>(self, src: &O) -> Self
pub fn src_if<O: IsA<Object> + Cast + Clone>( self, src: &O, predicate: bool, ) -> Self
pub fn src_if_some<O: IsA<Object> + Cast + Clone>(self, src: Option<&O>) -> Self
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 details(self, details: Structure) -> Self
pub fn details_if(self, details: Structure, predicate: bool) -> Self
pub fn details_if_some(self, details: Option<Structure>) -> 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) -> Message
Auto Trait Implementations§
impl<'a> Freeze for ClockLostBuilder<'a>
impl<'a> RefUnwindSafe for ClockLostBuilder<'a>
impl<'a> Send for ClockLostBuilder<'a>
impl<'a> !Sync for ClockLostBuilder<'a>
impl<'a> Unpin for ClockLostBuilder<'a>
impl<'a> UnwindSafe for ClockLostBuilder<'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