pub struct PlaybackProgressMsg {
pub url: Option<String>,
pub current_time: Option<OrderedFloat<f64>>,
pub total_time: Option<OrderedFloat<f64>>,
}
Fields
url: Option<String>
current_time: Option<OrderedFloat<f64>>
total_time: Option<OrderedFloat<f64>>
Implementations
sourceimpl PlaybackProgressMsg
impl PlaybackProgressMsg
pub fn new<F1, F2, F3>(
url: F1,
current_time: F2,
total_time: F3
) -> PlaybackProgressMsgwhere
F1: Into<Option<String>>,
F2: Into<Option<OrderedFloat<f64>>>,
F3: Into<Option<OrderedFloat<f64>>>,
pub fn read_from_in_protocol(
i_prot: &mut dyn TInputProtocol
) -> Result<PlaybackProgressMsg>
pub fn write_to_out_protocol(
&self,
o_prot: &mut dyn TOutputProtocol
) -> Result<()>
Trait Implementations
sourceimpl Clone for PlaybackProgressMsg
impl Clone for PlaybackProgressMsg
sourcefn clone(&self) -> PlaybackProgressMsg
fn clone(&self) -> PlaybackProgressMsg
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PlaybackProgressMsg
impl Debug for PlaybackProgressMsg
sourceimpl Default for PlaybackProgressMsg
impl Default for PlaybackProgressMsg
sourceimpl Hash for PlaybackProgressMsg
impl Hash for PlaybackProgressMsg
sourceimpl Ord for PlaybackProgressMsg
impl Ord for PlaybackProgressMsg
sourcefn cmp(&self, other: &PlaybackProgressMsg) -> Ordering
fn cmp(&self, other: &PlaybackProgressMsg) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<PlaybackProgressMsg> for PlaybackProgressMsg
impl PartialEq<PlaybackProgressMsg> for PlaybackProgressMsg
sourcefn eq(&self, other: &PlaybackProgressMsg) -> bool
fn eq(&self, other: &PlaybackProgressMsg) -> bool
sourceimpl PartialOrd<PlaybackProgressMsg> for PlaybackProgressMsg
impl PartialOrd<PlaybackProgressMsg> for PlaybackProgressMsg
sourcefn partial_cmp(&self, other: &PlaybackProgressMsg) -> Option<Ordering>
fn partial_cmp(&self, other: &PlaybackProgressMsg) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl Eq for PlaybackProgressMsg
impl StructuralEq for PlaybackProgressMsg
impl StructuralPartialEq for PlaybackProgressMsg
Auto Trait Implementations
impl RefUnwindSafe for PlaybackProgressMsg
impl Send for PlaybackProgressMsg
impl Sync for PlaybackProgressMsg
impl Unpin for PlaybackProgressMsg
impl UnwindSafe for PlaybackProgressMsg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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