pub struct ReadyState {
pub(crate) audio: AtomicBool,
pub(crate) video: AtomicBool,
}
Expand description
State of audio/video readiness, used internally
Fields§
§audio: AtomicBool
§video: AtomicBool
Implementations§
Source§impl ReadyState
impl ReadyState
pub fn video_ready(&self) -> bool
pub fn audio_ready(&self) -> bool
pub(crate) fn wait_for_both(&self)
Trait Implementations§
Source§impl Debug for ReadyState
impl Debug for ReadyState
Source§impl Default for ReadyState
impl Default for ReadyState
Source§fn default() -> ReadyState
fn default() -> ReadyState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ReadyState
impl RefUnwindSafe for ReadyState
impl Send for ReadyState
impl Sync for ReadyState
impl Unpin for ReadyState
impl UnwindSafe for ReadyState
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> 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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.