pub struct DataQueue(/* private fields */);Implementations§
Source§impl DataQueue
impl DataQueue
pub fn builder(element: &Element, src_pad: &Pad) -> DataQueueBuilder
pub fn state(&self) -> DataQueueState
pub fn upstream_context(&self) -> Option<Context>
pub fn cur_level_buffers(&self) -> u32
pub fn cur_level_bytes(&self) -> u32
pub fn cur_level_time(&self) -> ClockTime
pub fn start(&self)
pub fn stop(&self)
pub fn clear(&self)
pub fn push( &self, obj: &Object, item: DataQueueItem, ) -> Result<PushedStatus, DataQueueItem>
pub async fn next(&mut self) -> Option<DataQueueItem>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataQueue
impl RefUnwindSafe for DataQueue
impl Send for DataQueue
impl Sync for DataQueue
impl Unpin for DataQueue
impl UnsafeUnpin for DataQueue
impl UnwindSafe for DataQueue
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§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