pub struct SampleStreamSource { /* private fields */ }Implementations§
Source§impl SampleStreamSource
impl SampleStreamSource
pub fn id(&self) -> &str
pub fn kind(&self) -> MediaKind
pub fn send_audio(&self, frame: AudioFrame) -> MediaResult<()>
pub fn send_video(&self, frame: VideoFrame) -> MediaResult<()>
pub fn send(&self, sample: MediaSample) -> MediaResult<()>
pub fn send_many<I>(&self, samples: I) -> MediaResult<()>where
I: IntoIterator<Item = MediaSample>,
pub fn try_send_audio(&self, frame: AudioFrame) -> MediaResult<()>
pub fn try_send_video(&self, frame: VideoFrame) -> MediaResult<()>
pub fn try_send(&self, sample: MediaSample) -> MediaResult<()>
Sourcepub fn increment_drop_count(&self)
pub fn increment_drop_count(&self)
Increments the drop count (called by RtpReceiver when depacketizer drops frames).
Sourcepub fn drop_count(&self) -> u64
pub fn drop_count(&self) -> u64
Returns the current drop count.
Trait Implementations§
Source§impl Clone for SampleStreamSource
impl Clone for SampleStreamSource
Source§impl Drop for SampleStreamSource
impl Drop for SampleStreamSource
Auto Trait Implementations§
impl !RefUnwindSafe for SampleStreamSource
impl !UnwindSafe for SampleStreamSource
impl Freeze for SampleStreamSource
impl Send for SampleStreamSource
impl Sync for SampleStreamSource
impl Unpin for SampleStreamSource
impl UnsafeUnpin for SampleStreamSource
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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