Struct gstreamer::FormattedSegment
source · pub struct FormattedSegment<T: FormattedValueIntrinsic> { /* private fields */ }
Expand description
GLib type: Inline allocated boxed type with stack copy semantics.
Implementations§
source§impl<T: FormattedValueIntrinsic> FormattedSegment<T>
impl<T: FormattedValueIntrinsic> FormattedSegment<T>
pub fn as_ptr(&self) -> *mut GstSegment
sourcepub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const GstSegment) -> &'a Self
pub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const GstSegment) -> &'a Self
Borrows the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow_mut<'a>(ptr: *mut GstSegment) -> &'a mut Self
pub unsafe fn from_glib_ptr_borrow_mut<'a>(ptr: *mut GstSegment) -> &'a mut Self
Borrows the underlying C value mutably.
source§impl 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>>
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>
impl<T> FormattedSegment<T>
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> Drop for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> Drop for FormattedSegment<T>
source§impl<T: FormattedValueIntrinsic> From<FormattedSegment<T>> for Value
impl<T: FormattedValueIntrinsic> From<FormattedSegment<T>> for Value
source§fn from(v: FormattedSegment<T>) -> Value
fn from(v: FormattedSegment<T>) -> Value
Converts to this type from the input type.
source§impl<T: FormattedValueIntrinsic> PartialEq for FormattedSegment<T>
impl<T: FormattedValueIntrinsic> PartialEq 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> Freeze for FormattedSegment<T>
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> 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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 moresource§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> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.