[][src]Struct gstreamer_rtp::rtp_buffer::RTPBuffer

pub struct RTPBuffer<'a, T> { /* fields omitted */ }

Implementations

impl<'a> RTPBuffer<'a, Readable>[src]

pub fn from_buffer_readable(
    buffer: &Buffer
) -> Result<RTPBuffer<'_, Readable>, BoolError>
[src]

impl<'a> RTPBuffer<'a, Writable>[src]

pub fn from_buffer_writable(
    buffer: &mut Buffer
) -> Result<RTPBuffer<'_, Writable>, BoolError>
[src]

pub fn set_seq(&mut self, seq: u16)[src]

pub fn set_marker(&mut self, m: bool)[src]

pub fn set_payload_type(&mut self, pt: u8)[src]

pub fn set_ssrc(&mut self, ssrc: u32)[src]

pub fn set_csrc(&mut self, idx: u8, ssrc: u32)[src]

pub fn set_timestamp(&mut self, rtptime: u32)[src]

pub fn set_extension(&mut self, extension: bool)[src]

pub fn add_extension_onebyte_header(
    &mut self,
    id: u8,
    data: &[u8]
) -> Result<(), BoolError>
[src]

pub fn add_extension_twobytes_header(
    &mut self,
    appbits: u8,
    id: u8,
    data: &[u8]
) -> Result<(), BoolError>
[src]

impl<'a, T> RTPBuffer<'a, T>[src]

pub fn get_seq(&self) -> u16[src]

pub fn get_payload_type(&self) -> u8[src]

pub fn get_ssrc(&self) -> u32[src]

pub fn get_timestamp(&self) -> u32[src]

pub fn get_csrc(&self, idx: u8) -> Option<u32>[src]

pub fn get_csrc_count(&self) -> u8[src]

pub fn get_marker(&self) -> bool[src]

pub fn get_payload_size(&self) -> u32[src]

pub fn get_payload(&self) -> Result<&[u8], BoolError>[src]

pub fn get_extension(&self) -> bool[src]

pub fn get_extension_bytes(&self) -> Option<(u16, Bytes)>[src]

pub fn get_extension_onebyte_header(&self, id: u8, nth: u32) -> Option<&[u8]>[src]

pub fn get_extension_twobytes_header(
    &self,
    id: u8,
    nth: u32
) -> Option<(u8, &[u8])>
[src]

Trait Implementations

impl<'a, T> Debug for RTPBuffer<'a, T>[src]

impl<'a, T> Drop for RTPBuffer<'a, T>[src]

impl<'a, T> Send for RTPBuffer<'a, T>[src]

impl<'a, T> Sync for RTPBuffer<'a, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for RTPBuffer<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Unpin for RTPBuffer<'a, T> where
    T: Unpin

impl<'a, T> UnwindSafe for RTPBuffer<'a, T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.