Struct gstreamer::FormattedSegment [−][src]
#[repr(transparent)]pub struct FormattedSegment<T: FormattedValue>(_, _);
Implementations
impl FormattedSegment<GenericFormattedValue>
[src]
impl FormattedSegment<GenericFormattedValue>
[src]pub fn reset_with_format(&mut self, format: Format)
[src]
pub fn set_format(&mut self, format: Format)
[src]
pub fn downcast<T: FormattedValue>(self) -> Result<FormattedSegment<T>, Self>
[src]
pub fn downcast_ref<T: FormattedValue>(&self) -> Option<&FormattedSegment<T>>
[src]
pub fn downcast_mut<T: FormattedValue>(
&mut self
) -> Option<&mut FormattedSegment<T>>
[src]
&mut self
) -> Option<&mut FormattedSegment<T>>
impl<T: FormattedValue> FormattedSegment<T>
[src]
impl<T: FormattedValue> FormattedSegment<T>
[src]pub fn new() -> Self
[src]
pub fn upcast(self) -> Segment
[src]
pub fn upcast_ref(&self) -> &Segment
[src]
pub fn reset(&mut self)
[src]
pub fn clip<V: Into<T>>(&self, start: V, stop: V) -> Option<(T, T)>
[src]
pub fn do_seek<V: Into<T>>(
&mut self,
rate: f64,
flags: SeekFlags,
start_type: SeekType,
start: V,
stop_type: SeekType,
stop: V
) -> Option<bool>
[src]
&mut self,
rate: f64,
flags: SeekFlags,
start_type: SeekType,
start: V,
stop_type: SeekType,
stop: V
) -> Option<bool>
pub fn offset_running_time(&mut self, offset: i64) -> Result<(), BoolError>
[src]
pub fn position_from_running_time<V: Into<T>>(&self, running_time: V) -> T
[src]
pub fn position_from_running_time_full<V: Into<T>>(
&self,
running_time: V
) -> (i32, T)
[src]
&self,
running_time: V
) -> (i32, T)
pub fn position_from_stream_time<V: Into<T>>(&self, stream_time: V) -> T
[src]
pub fn position_from_stream_time_full<V: Into<T>>(
&self,
stream_time: V
) -> (i32, T)
[src]
&self,
stream_time: V
) -> (i32, T)
pub fn set_running_time<V: Into<T>>(
&mut self,
running_time: V
) -> Result<(), BoolError>
[src]
&mut self,
running_time: V
) -> Result<(), BoolError>
pub fn to_running_time<V: Into<T>>(&self, position: V) -> T
[src]
pub fn to_running_time_full<V: Into<T>>(&self, position: V) -> (i32, T)
[src]
pub fn to_stream_time<V: Into<T>>(&self, position: V) -> T
[src]
pub fn to_stream_time_full<V: Into<T>>(&self, position: V) -> (i32, T)
[src]
pub fn flags(&self) -> SegmentFlags
[src]
pub fn set_flags(&mut self, flags: SegmentFlags)
[src]
pub fn rate(&self) -> f64
[src]
pub fn set_rate(&mut self, rate: f64)
[src]
pub fn applied_rate(&self) -> f64
[src]
pub fn set_applied_rate(&mut self, applied_rate: f64)
[src]
pub fn format(&self) -> Format
[src]
pub fn base(&self) -> T
[src]
pub fn set_base<V: Into<T>>(&mut self, base: V)
[src]
pub fn offset(&self) -> T
[src]
pub fn set_offset<V: Into<T>>(&mut self, offset: V)
[src]
pub fn start(&self) -> T
[src]
pub fn set_start<V: Into<T>>(&mut self, start: V)
[src]
pub fn stop(&self) -> T
[src]
pub fn set_stop<V: Into<T>>(&mut self, stop: V)
[src]
pub fn time(&self) -> T
[src]
pub fn set_time<V: Into<T>>(&mut self, time: V)
[src]
pub fn position(&self) -> T
[src]
pub fn set_position<V: Into<T>>(&mut self, position: V)
[src]
pub fn duration(&self) -> T
[src]
pub fn set_duration<V: Into<T>>(&mut self, duration: V)
[src]
Trait Implementations
impl<T: FormattedValue> AsRef<FormattedSegment<GenericFormattedValue>> for FormattedSegment<T>
[src]
impl<T: FormattedValue> AsRef<FormattedSegment<GenericFormattedValue>> for FormattedSegment<T>
[src]impl<T: FormattedValue> Clone for FormattedSegment<T>
[src]
impl<T: FormattedValue> Clone for FormattedSegment<T>
[src]impl<T: FormattedValue> Debug for FormattedSegment<T>
[src]
impl<T: FormattedValue> Debug for FormattedSegment<T>
[src]impl<T: FormattedValue> Default for FormattedSegment<T>
[src]
impl<T: FormattedValue> Default for FormattedSegment<T>
[src]impl<'de, T: FormattedValue + SpecificFormattedValue> Deserialize<'de> for FormattedSegment<T>
[src]
impl<'de, T: FormattedValue + SpecificFormattedValue> Deserialize<'de> for FormattedSegment<T>
[src]fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]Deserialize this value from the given Serde deserializer. Read more
impl<T: FormattedValue> PartialEq<FormattedSegment<T>> for FormattedSegment<T>
[src]
impl<T: FormattedValue> PartialEq<FormattedSegment<T>> for FormattedSegment<T>
[src]impl<T: FormattedValue> Serialize for FormattedSegment<T>
[src]
impl<T: FormattedValue> Serialize for FormattedSegment<T>
[src]impl<T: FormattedValue> StaticType for FormattedSegment<T>
[src]
impl<T: FormattedValue> StaticType for FormattedSegment<T>
[src]fn static_type() -> Type
[src]
fn static_type() -> Type
[src]Returns the type identifier of Self
.
impl<T: FormattedValue> Eq for FormattedSegment<T>
[src]
impl<T: FormattedValue> Send for FormattedSegment<T>
[src]
impl<T: FormattedValue> Sync for FormattedSegment<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for FormattedSegment<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Unpin for FormattedSegment<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for FormattedSegment<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
pub fn to_send_value(&self) -> SendValue
[src]Returns a SendValue
clone of self
.
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,
[src]
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,