pub struct DumpRef<'a>(/* private fields */);
Expand description

Reference to a deserialized Dump.

Implementations§

source§

impl<'a> DumpRef<'a>

source

pub fn id(&self) -> Result<&'a str>

Getter for the id field.

source

pub fn direct(&self) -> Result<bool>

Getter for the direct field.

source

pub fn producer_ids(&self) -> Result<Vector<'a, Result<&'a str>>>

Getter for the producer_ids field.

source

pub fn consumer_ids(&self) -> Result<Vector<'a, Result<&'a str>>>

Getter for the consumer_ids field.

source

pub fn map_ssrc_consumer_id( &self ) -> Result<Vector<'a, Result<Uint32StringRef<'a>>>>

source

pub fn map_rtx_ssrc_consumer_id( &self ) -> Result<Vector<'a, Result<Uint32StringRef<'a>>>>

source

pub fn data_producer_ids(&self) -> Result<Vector<'a, Result<&'a str>>>

Getter for the data_producer_ids field.

source

pub fn data_consumer_ids(&self) -> Result<Vector<'a, Result<&'a str>>>

Getter for the data_consumer_ids field.

source

pub fn recv_rtp_header_extensions( &self ) -> Result<RecvRtpHeaderExtensionsRef<'a>>

source

pub fn rtp_listener(&self) -> Result<RtpListenerRef<'a>>

Getter for the rtp_listener field.

source

pub fn max_message_size(&self) -> Result<u32>

Getter for the max_message_size field.

source

pub fn sctp_parameters(&self) -> Result<Option<SctpParametersRef<'a>>>

Getter for the sctp_parameters field.

source

pub fn sctp_state(&self) -> Result<Option<SctpState>>

Getter for the sctp_state field.

source

pub fn sctp_listener(&self) -> Result<Option<SctpListenerRef<'a>>>

Getter for the sctp_listener field.

source

pub fn trace_event_types( &self ) -> Result<Vector<'a, Result<TraceEventType, UnknownEnumTag>>>

Getter for the trace_event_types field.

Trait Implementations§

source§

impl<'a> Clone for DumpRef<'a>

source§

fn clone(&self) -> DumpRef<'a>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Debug for DumpRef<'a>

source§

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

Formats the value using the given formatter. Read more
source§

impl<'a> ReadAsRoot<'a> for DumpRef<'a>

source§

fn read_as_root(slice: &'a [u8]) -> Result<Self>

Takes a slice assumed to be of this type and returns a view into it. Read more
source§

impl<'a> TryFrom<DumpRef<'a>> for Dump

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: DumpRef<'a>) -> Result<Self>

Performs the conversion.
source§

impl<'a> Copy for DumpRef<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for DumpRef<'a>

§

impl<'a> Send for DumpRef<'a>

§

impl<'a> Sync for DumpRef<'a>

§

impl<'a> Unpin for DumpRef<'a>

§

impl<'a> UnwindSafe for DumpRef<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.