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