Skip to main content

DialogSnapshot

Struct DialogSnapshot 

Source
pub struct DialogSnapshot { /* private fields */ }
Expand description

Immutable version-two facts needed to continue a confirmed dialog.

Implementations§

Source§

impl DialogSnapshot

Source

pub const fn version(&self) -> u16

The schema version emitted by this build.

Source

pub const fn role(&self) -> Role

Which dialog role was captured.

Source

pub const fn dialog_id(&self) -> &DialogId

The retained dialog identifier.

Source

pub fn local_party(&self) -> &str

The validated local party value, without the separately retained dialog tag.

Source

pub fn remote_party(&self) -> &str

The validated remote party value, without the separately retained dialog tag.

Source

pub const fn local_cseq(&self) -> u32

The last locally used in-dialog sequence number.

Source

pub const fn remote_cseq(&self) -> Option<u32>

The greatest accepted remote sequence number.

Source

pub const fn remote_target(&self) -> &Uri

The retained remote target from the latest target refresh.

Source

pub fn route_set(&self) -> &[String]

The route set in send order.

Source

pub const fn protected_signalling(&self) -> bool

Whether the captured signalling path was protected.

Source

pub const fn media_keying(&self) -> NegotiatedKeying

The negotiated media keying class. No key bytes are retained.

Source

pub const fn media_profile(&self) -> MediaProfile

The retained named media profile.

Source

pub const fn codecs(&self) -> Codecs

The exact codec policy used for later offers.

Source

pub const fn codec(&self) -> Codec

The negotiated audio codec.

Source

pub const fn clock_rate(&self) -> u32

The RTP clock rate of the negotiated audio format.

Source

pub const fn payload_type(&self) -> u8

The RTP payload type used to send the negotiated codec.

Source

pub const fn receive_payload_type(&self) -> u8

The RTP payload type accepted for the negotiated codec.

Source

pub const fn dtmf_payload_type(&self) -> Option<u8>

The dynamic RTP payload type carrying telephone events, when enabled.

Source

pub const fn rtcp_mode(&self) -> RtcpMode

The negotiated RTCP socket shape.

Source

pub const fn direction(&self) -> Direction

The most recently negotiated media direction.

Source

pub const fn peer_allows_update(&self) -> bool

Whether the peer advertised support for UPDATE.

Source

pub const fn session_timer(&self) -> Option<(Duration, bool, Duration)>

Negotiated interval, local refresher role, and remaining duration at capture.

Source

pub fn encode(&self) -> Vec<u8>

Encode this value in the deterministic version-two binary format.

Values can only be obtained from validated capture or decoding, so this operation is infallible and never writes a partial result to a caller-owned buffer.

Source

pub fn decode(input: &[u8]) -> Result<Self, DialogPersistenceError>

Decode and validate one complete snapshot.

The total input bound is applied before any field is read. Per-field and aggregate bounds are then checked before each allocation, so hostile length prefixes cannot request their declared amount of memory.

Trait Implementations§

Source§

impl Clone for DialogSnapshot

Source§

fn clone(&self) -> DialogSnapshot

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DialogSnapshot

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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>,

Source§

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,