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

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

Implementations

impl<'a> RTPBuffer<'a, Readable>[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 seq(&self) -> u16[src]

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

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

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

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

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

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

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

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

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

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

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

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

Trait Implementations

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

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

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

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.