Struct gstreamer_video::VideoTimeCode
source · #[repr(transparent)]pub struct VideoTimeCode(_);
Implementations§
source§impl VideoTimeCode
impl VideoTimeCode
pub fn new_empty() -> Self
pub fn new(
fps: Fraction,
latest_daily_jam: Option<&DateTime>,
flags: VideoTimeCodeFlags,
hours: u32,
minutes: u32,
seconds: u32,
frames: u32,
field_count: u32
) -> Self
pub fn from_date_time(
fps: Fraction,
dt: &DateTime,
flags: VideoTimeCodeFlags,
field_count: u32
) -> Result<Self, BoolError>
Available on crate feature
v1_16
only.pub fn is_valid(&self) -> bool
pub fn set_fps(&mut self, fps: Fraction)
pub fn set_flags(&mut self, flags: VideoTimeCodeFlags)
pub fn set_hours(&mut self, hours: u32)
pub fn set_minutes(&mut self, minutes: u32)
pub fn set_seconds(&mut self, seconds: u32)
pub fn set_frames(&mut self, frames: u32)
pub fn set_field_count(&mut self, field_count: u32)
source§impl VideoTimeCode
impl VideoTimeCode
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 VideoTimeCode
impl Clone for VideoTimeCode
source§impl Debug for VideoTimeCode
impl Debug for VideoTimeCode
source§impl Display for VideoTimeCode
impl Display for VideoTimeCode
source§impl Drop for VideoTimeCode
impl Drop for VideoTimeCode
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 FromStr for VideoTimeCode
impl FromStr for VideoTimeCode
source§impl StaticType for VideoTimeCode
impl StaticType for VideoTimeCode
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 VideoTimeCode
impl ValueType for VideoTimeCode
§type Type = VideoTimeCode
type Type = VideoTimeCode
Type to get the
Type
from. Read moreimpl Send for VideoTimeCode
impl Sync for VideoTimeCode
impl ValueTypeOptional for VideoTimeCode
Auto Trait Implementations§
impl RefUnwindSafe for VideoTimeCode
impl Unpin for VideoTimeCode
impl UnwindSafe for VideoTimeCode
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
.