Struct gstreamer_video::ValidVideoTimeCode
source · #[repr(transparent)]pub struct ValidVideoTimeCode(_);
Implementations§
source§impl ValidVideoTimeCode
impl ValidVideoTimeCode
pub fn new(
fps: Fraction,
latest_daily_jam: Option<&DateTime>,
flags: VideoTimeCodeFlags,
hours: u32,
minutes: u32,
seconds: u32,
frames: u32,
field_count: u32
) -> Result<Self, BoolError>
pub fn add_frames(&mut self, frames: i64)
pub fn add_interval(
&self,
tc_inter: &VideoTimeCodeInterval
) -> Result<Self, BoolError>
pub fn frames_since_daily_jam(&self) -> u64
pub fn increment_frame(&mut self)
pub fn time_since_daily_jam(&self) -> ClockTime
pub fn to_date_time(&self) -> Result<DateTime, BoolError>
source§impl ValidVideoTimeCode
impl ValidVideoTimeCode
pub fn hours(&self) -> u32
pub fn minutes(&self) -> u32
pub fn seconds(&self) -> u32
pub fn frames(&self) -> u32
pub fn field_count(&self) -> u32
pub fn fps(&self) -> Fraction
pub fn flags(&self) -> VideoTimeCodeFlags
pub fn latest_daily_jam(&self) -> Option<DateTime>
pub fn set_latest_daily_jam(&mut self, latest_daily_jam: Option<&DateTime>)
Trait Implementations§
source§impl Clone for ValidVideoTimeCode
impl Clone for ValidVideoTimeCode
source§impl Debug for ValidVideoTimeCode
impl Debug for ValidVideoTimeCode
source§impl Display for ValidVideoTimeCode
impl Display for ValidVideoTimeCode
source§impl Drop for ValidVideoTimeCode
impl Drop for ValidVideoTimeCode
source§impl From<ValidVideoTimeCode> for VideoTimeCode
impl From<ValidVideoTimeCode> for VideoTimeCode
source§fn from(v: ValidVideoTimeCode) -> Self
fn from(v: ValidVideoTimeCode) -> Self
Converts to this type from the input type.
source§impl Ord for ValidVideoTimeCode
impl Ord for ValidVideoTimeCode
source§impl PartialEq<ValidVideoTimeCode> for ValidVideoTimeCode
impl PartialEq<ValidVideoTimeCode> for ValidVideoTimeCode
source§impl PartialOrd<ValidVideoTimeCode> for ValidVideoTimeCode
impl PartialOrd<ValidVideoTimeCode> for ValidVideoTimeCode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for ValidVideoTimeCode
impl StaticType for ValidVideoTimeCode
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl TryFrom<VideoTimeCode> for ValidVideoTimeCode
impl TryFrom<VideoTimeCode> for ValidVideoTimeCode
§type Error = VideoTimeCode
type Error = VideoTimeCode
The type returned in the event of a conversion error.
source§fn try_from(v: VideoTimeCode) -> Result<Self, VideoTimeCode>
fn try_from(v: VideoTimeCode) -> Result<Self, VideoTimeCode>
Performs the conversion.
source§impl ValueType for ValidVideoTimeCode
impl ValueType for ValidVideoTimeCode
§type Type = ValidVideoTimeCode
type Type = ValidVideoTimeCode
Type to get the
Type
from. Read moreimpl Eq for ValidVideoTimeCode
impl Send for ValidVideoTimeCode
impl Sync for ValidVideoTimeCode
impl ValueTypeOptional for ValidVideoTimeCode
Auto Trait Implementations§
impl RefUnwindSafe for ValidVideoTimeCode
impl Unpin for ValidVideoTimeCode
impl UnwindSafe for ValidVideoTimeCode
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
.