Struct gstreamer::FormattedSegment
source · [−]#[repr(transparent)]pub struct FormattedSegment<T: FormattedValueIntrinsic>(_, _);
Implementations
sourceimpl FormattedSegment<GenericFormattedValue>
impl FormattedSegment<GenericFormattedValue>
pub fn reset_with_format(&mut self, format: Format)
pub fn set_format(&mut self, format: Format)
pub fn downcast<T: FormattedValueIntrinsic>(
self
) -> Result<FormattedSegment<T>, Self>
pub fn downcast_ref<T: FormattedValueIntrinsic>(
&self
) -> Option<&FormattedSegment<T>>
pub fn downcast_mut<T: FormattedValueIntrinsic>(
&mut self
) -> Option<&mut FormattedSegment<T>>
sourceimpl<T: FormattedValueIntrinsic> FormattedSegment<T>
impl<T: FormattedValueIntrinsic> FormattedSegment<T>
pub fn new() -> Self
pub fn upcast(self) -> Segment
pub fn upcast_ref(&self) -> &Segment
pub fn reset(&mut self)
pub fn clip<V: Into<T::FormattedValueType>>(
&self,
start: V,
stop: V
) -> Option<(T::FormattedValueType, T::FormattedValueType)>
pub fn do_seek<V: Into<T::FormattedValueType>>(
&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>
pub fn position_from_running_time<V: Into<T::FormattedValueType>>(
&self,
running_time: V
) -> T::FormattedValueType
pub fn position_from_running_time_full<V: Into<T::FormattedValueType>>(
&self,
running_time: V
) -> (i32, T::FormattedValueType)
pub fn position_from_stream_time<V: Into<T::FormattedValueType>>(
&self,
stream_time: V
) -> T::FormattedValueType
pub fn position_from_stream_time_full<V: Into<T::FormattedValueType>>(
&self,
stream_time: V
) -> (i32, T::FormattedValueType)
pub fn set_running_time<V: Into<T::FormattedValueType>>(
&mut self,
running_time: V
) -> Result<(), BoolError>
pub fn to_running_time<V: Into<T::FormattedValueType>>(
&self,
position: V
) -> T::FormattedValueType
pub fn to_running_time_full<V: Into<T::FormattedValueType>>(
&self,
position: V
) -> (i32, T::FormattedValueType)
pub fn to_stream_time<V: Into<T::FormattedValueType>>(
&self,
position: V
) -> T::FormattedValueType
pub fn to_stream_time_full<V: Into<T::FormattedValueType>>(
&self,
position: V
) -> (i32, T::FormattedValueType)
pub fn flags(&self) -> SegmentFlags
pub fn set_flags(&mut self, flags: SegmentFlags)
pub fn rate(&self) -> f64
pub fn set_rate(&mut self, rate: f64)
pub fn applied_rate(&self) -> f64
pub fn set_applied_rate(&mut self, applied_rate: f64)
pub fn format(&self) -> Format
pub fn base(&self) -> T::FormattedValueType
pub fn set_base<V: Into<T::FormattedValueType>>(&mut self, base: V)
pub fn offset(&self) -> T::FormattedValueType
pub fn set_offset<V: Into<T::FormattedValueType>>(&mut self, offset: V)
pub fn start(&self) -> T::FormattedValueType
pub fn set_start<V: Into<T::FormattedValueType>>(&mut self, start: V)
pub fn stop(&self) -> T::FormattedValueType
pub fn set_stop<V: Into<T::FormattedValueType>>(&mut self, stop: V)
pub fn time(&self) -> T::FormattedValueType
pub fn set_time<V: Into<T::FormattedValueType>>(&mut self, time: V)
pub fn position(&self) -> T::FormattedValueType
pub fn set_position<V: Into<T::FormattedValueType>>(&mut self, position: V)
pub fn duration(&self) -> T::FormattedValueType
pub fn set_duration<V: Into<T::FormattedValueType>>(&mut self, duration: V)
Trait Implementations
sourceimpl<T: FormattedValueIntrinsic> AsRef<FormattedSegment<GenericFormattedValue>> for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> AsRef<FormattedSegment<GenericFormattedValue>> for FormattedSegment<T>
sourceimpl<T: FormattedValueIntrinsic> Clone for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Clone for FormattedSegment<T>
sourceimpl<T: FormattedValueIntrinsic> Debug for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Debug for FormattedSegment<T>
sourceimpl<T: FormattedValueIntrinsic> Default for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Default for FormattedSegment<T>
sourceimpl<'de, T: SpecificFormattedValueIntrinsic> Deserialize<'de> for FormattedSegment<T>
impl<'de, T: SpecificFormattedValueIntrinsic> Deserialize<'de> for FormattedSegment<T>
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T: FormattedValueIntrinsic> PartialEq<FormattedSegment<T>> for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> PartialEq<FormattedSegment<T>> for FormattedSegment<T>
sourceimpl<T: FormattedValueIntrinsic> Serialize for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Serialize for FormattedSegment<T>
sourceimpl<T: FormattedValueIntrinsic> StaticType for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> StaticType for FormattedSegment<T>
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: FormattedValueIntrinsic> Eq for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Send for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Sync for FormattedSegment<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for FormattedSegment<T> where
T: RefUnwindSafe,
impl<T> Unpin for FormattedSegment<T> where
T: Unpin,
impl<T> UnwindSafe for FormattedSegment<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.