Struct gstreamer::FormattedSegment
source · #[repr(transparent)]pub struct FormattedSegment<T: FormattedValueIntrinsic>(_, _);
Implementations§
source§impl FormattedSegment<GenericFormattedValue>
impl FormattedSegment<GenericFormattedValue>
pub unsafe fn from_ptr<'a>(ptr: *const GstSegment) -> &'a Segment
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>>
source§impl<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(
&self,
start: impl CompatibleFormattedValue<T>,
stop: impl CompatibleFormattedValue<T>
) -> Option<(T::FullRange, T::FullRange)>
pub fn do_seek(
&mut self,
rate: f64,
flags: SeekFlags,
start_type: SeekType,
start: impl CompatibleFormattedValue<T>,
stop_type: SeekType,
stop: impl CompatibleFormattedValue<T>
) -> Option<bool>
pub fn offset_running_time(&mut self, offset: i64) -> Result<(), BoolError>
pub fn set_running_time(
&mut self,
running_time: impl CompatibleFormattedValue<T>
) -> Result<(), BoolError>
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::FullRange
pub fn set_base(&mut self, base: impl CompatibleFormattedValue<T>)
pub fn offset(&self) -> T::FullRange
pub fn set_offset(&mut self, offset: impl CompatibleFormattedValue<T>)
pub fn start(&self) -> T::FullRange
pub fn set_start(&mut self, start: impl CompatibleFormattedValue<T>)
pub fn stop(&self) -> T::FullRange
pub fn set_stop(&mut self, stop: impl CompatibleFormattedValue<T>)
pub fn time(&self) -> T::FullRange
pub fn set_time(&mut self, time: impl CompatibleFormattedValue<T>)
pub fn position(&self) -> T::FullRange
pub fn set_position(&mut self, position: impl CompatibleFormattedValue<T>)
pub fn duration(&self) -> T::FullRange
pub fn set_duration(&mut self, duration: impl CompatibleFormattedValue<T>)
source§impl<T> FormattedSegment<T>where
T: FormattedValueIntrinsic,
T::FullRange: FormattedValueNoneBuilder,
impl<T> FormattedSegment<T>where
T: FormattedValueIntrinsic,
T::FullRange: FormattedValueNoneBuilder,
pub fn position_from_running_time(
&self,
running_time: impl CompatibleFormattedValue<T>
) -> T::FullRange
pub fn position_from_stream_time(
&self,
stream_time: impl CompatibleFormattedValue<T>
) -> T::FullRange
pub fn to_running_time(
&self,
position: impl CompatibleFormattedValue<T>
) -> T::FullRange
pub fn to_stream_time(
&self,
position: impl CompatibleFormattedValue<T>
) -> T::FullRange
source§impl<T> FormattedSegment<T>where
T: FormattedValueIntrinsic,
T::FullRange: UnsignedIntoSigned + NoneSignedBuilder<Signed = <T::FullRange as UnsignedIntoSigned>::Signed>,
impl<T> FormattedSegment<T>where
T: FormattedValueIntrinsic,
T::FullRange: UnsignedIntoSigned + NoneSignedBuilder<Signed = <T::FullRange as UnsignedIntoSigned>::Signed>,
pub fn position_from_running_time_full(
&self,
running_time: impl CompatibleFormattedValue<T>
) -> <T::FullRange as UnsignedIntoSigned>::Signed
pub fn position_from_stream_time_full(
&self,
stream_time: impl CompatibleFormattedValue<T>
) -> <T::FullRange as UnsignedIntoSigned>::Signed
pub fn to_running_time_full(
&self,
position: impl CompatibleFormattedValue<T>
) -> <T::FullRange as UnsignedIntoSigned>::Signed
pub fn to_stream_time_full(
&self,
position: impl CompatibleFormattedValue<T>
) -> <T::FullRange as UnsignedIntoSigned>::Signed
Trait Implementations§
source§impl<T: FormattedValueIntrinsic> AsRef<FormattedSegment<GenericFormattedValue>> for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> AsRef<FormattedSegment<GenericFormattedValue>> for FormattedSegment<T>
source§impl<T: FormattedValueIntrinsic> Clone for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Clone for FormattedSegment<T>
source§impl<T: FormattedValueIntrinsic> Debug for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Debug for FormattedSegment<T>
source§impl<T: FormattedValueIntrinsic> Default for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Default for FormattedSegment<T>
source§impl<'de, T: SpecificFormattedValueIntrinsic> Deserialize<'de> for FormattedSegment<T>
impl<'de, T: SpecificFormattedValueIntrinsic> Deserialize<'de> for FormattedSegment<T>
source§fn 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
source§impl<T: FormattedValueIntrinsic> PartialEq<FormattedSegment<T>> for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> PartialEq<FormattedSegment<T>> for FormattedSegment<T>
source§impl<T: FormattedValueIntrinsic> Serialize for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Serialize for FormattedSegment<T>
source§impl<T: FormattedValueIntrinsic> StaticType for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> StaticType for FormattedSegment<T>
source§fn 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§
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.