Enum gstreamer_play::PlayMessage
source · #[non_exhaustive]pub enum PlayMessage {
Show 13 variants
UriLoaded,
PositionUpdated {
position: Option<ClockTime>,
},
DurationChanged {
duration: Option<ClockTime>,
},
StateChanged {
state: PlayState,
},
Buffering {
percent: u32,
},
EndOfStream,
Error {
error: Error,
details: Option<Structure>,
},
Warning {
error: Error,
details: Option<Structure>,
},
VideoDimensionsChanged {
width: u32,
height: u32,
},
MediaInfoUpdated {
info: PlayMediaInfo,
},
VolumeChanged {
volume: f64,
},
MuteChanged {
muted: bool,
},
SeekDone,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UriLoaded
PositionUpdated
DurationChanged
StateChanged
Buffering
EndOfStream
Error
Warning
VideoDimensionsChanged
MediaInfoUpdated
Fields
§
info: PlayMediaInfo
VolumeChanged
MuteChanged
SeekDone
Implementations§
Trait Implementations§
source§impl Clone for PlayMessage
impl Clone for PlayMessage
source§fn clone(&self) -> PlayMessage
fn clone(&self) -> PlayMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PlayMessage
impl Debug for PlayMessage
source§impl PartialEq for PlayMessage
impl PartialEq for PlayMessage
impl StructuralPartialEq for PlayMessage
Auto Trait Implementations§
impl Freeze for PlayMessage
impl RefUnwindSafe for PlayMessage
impl Send for PlayMessage
impl Sync for PlayMessage
impl Unpin for PlayMessage
impl UnwindSafe for PlayMessage
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> 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 more