pub struct RetainDuration<'a, 'f1, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with retain().
Implementations§
Source§impl<'a, 'f1, S: State> RetainDuration<'a, 'f1, S>
impl<'a, 'f1, S: State> RetainDuration<'a, 'f1, S>
Sourcepub fn retain(self) -> &'f1 mut MoovAtomRefMut<'a>where
S: IsComplete,
pub fn retain(self) -> &'f1 mut MoovAtomRefMut<'a>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn from_offset(
self,
value: Duration,
) -> RetainDuration<'a, 'f1, SetFromOffset<S>>where
S::FromOffset: IsUnset,
pub fn from_offset(
self,
value: Duration,
) -> RetainDuration<'a, 'f1, SetFromOffset<S>>where
S::FromOffset: IsUnset,
Sourcepub fn maybe_from_offset(
self,
value: Option<Duration>,
) -> RetainDuration<'a, 'f1, SetFromOffset<S>>where
S::FromOffset: IsUnset,
pub fn maybe_from_offset(
self,
value: Option<Duration>,
) -> RetainDuration<'a, 'f1, SetFromOffset<S>>where
S::FromOffset: IsUnset,
Sourcepub fn duration(
self,
value: Duration,
) -> RetainDuration<'a, 'f1, SetDuration<S>>where
S::Duration: IsUnset,
pub fn duration(
self,
value: Duration,
) -> RetainDuration<'a, 'f1, SetDuration<S>>where
S::Duration: IsUnset,
Required.
Auto Trait Implementations§
impl<'a, 'f1, S> Freeze for RetainDuration<'a, 'f1, S>
impl<'a, 'f1, S> RefUnwindSafe for RetainDuration<'a, 'f1, S>
impl<'a, 'f1, S> Send for RetainDuration<'a, 'f1, S>
impl<'a, 'f1, S> Sync for RetainDuration<'a, 'f1, S>
impl<'a, 'f1, S> Unpin for RetainDuration<'a, 'f1, S>
impl<'a, 'f1, S> UnsafeUnpin for RetainDuration<'a, 'f1, S>
impl<'a, 'f1, S = Empty> !UnwindSafe for RetainDuration<'a, 'f1, S>
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