pub struct ProgressBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> ProgressBuilder<'a>
impl<'a> ProgressBuilder<'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
Available on crate feature
v1_26 only.pub fn details_if(self, details: Structure, predicate: bool) -> Self
Available on crate feature
v1_26 only.pub fn details_if_some(self, details: Option<Structure>) -> Self
Available on crate feature
v1_26 only.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>, I: ToSendValue>(
self,
name: &'a str,
iter: impl IntoIterator<Item = I>,
) -> Self
pub fn other_field_from_iter<V: ValueType + ToSendValue + FromIterator<SendValue>, I: ToSendValue>( self, name: &'a str, iter: impl IntoIterator<Item = I>, ) -> Self
Sets field name using the given ValueType V built from iter’s the Items.
Overrides any default or previously defined value for name.
Sourcepub fn other_field_if_not_empty<V: ValueType + ToSendValue + FromIterator<SendValue>, I: ToSendValue>(
self,
name: &'a str,
iter: impl IntoIterator<Item = I>,
) -> Self
pub fn other_field_if_not_empty<V: ValueType + ToSendValue + FromIterator<SendValue>, I: ToSendValue>( self, name: &'a str, iter: impl IntoIterator<Item = I>, ) -> 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 build(self) -> Message
Auto Trait Implementations§
impl<'a> Freeze for ProgressBuilder<'a>
impl<'a> RefUnwindSafe for ProgressBuilder<'a>
impl<'a> Send for ProgressBuilder<'a>
impl<'a> !Sync for ProgressBuilder<'a>
impl<'a> Unpin for ProgressBuilder<'a>
impl<'a> UnwindSafe for ProgressBuilder<'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