Struct webrtc_srtp::stream::Stream
source · [−]pub struct Stream { /* private fields */ }Expand description
Stream handles decryption for a single RTP/RTCP SSRC
Implementations
sourceimpl Stream
impl Stream
sourcepub fn is_rtp_stream(&self) -> bool
pub fn is_rtp_stream(&self) -> bool
Check if RTP is a stream.
sourcepub async fn read(&self, buf: &mut [u8]) -> Result<usize, Error>
pub async fn read(&self, buf: &mut [u8]) -> Result<usize, Error>
Read reads and decrypts full RTP packet from the nextConn
sourcepub async fn read_rtp(&self, buf: &mut [u8]) -> Result<(usize, Header), Error>
pub async fn read_rtp(&self, buf: &mut [u8]) -> Result<(usize, Header), Error>
ReadRTP reads and decrypts full RTP packet and its header from the nextConn
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl !UnwindSafe for Stream
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