pub struct CodecNegotiationRecord {
pub local_offered: Vec<CodecId>,
pub remote_offered: Vec<CodecId>,
pub agreed: Option<CodecId>,
pub negotiated_at: Instant,
pub negotiation_ms: u64,
}Expand description
Record of a single codec negotiation between the local peer and a remote peer.
Fields§
§local_offered: Vec<CodecId>Codec ids offered by the local side, in preference order.
remote_offered: Vec<CodecId>Codec ids offered by the remote side, in any order.
agreed: Option<CodecId>The codec that was agreed upon, or None if no common codec was found.
negotiated_at: InstantWall-clock time at which negotiation completed.
negotiation_ms: u64Duration of the negotiation in milliseconds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodecNegotiationRecord
impl RefUnwindSafe for CodecNegotiationRecord
impl Send for CodecNegotiationRecord
impl Sync for CodecNegotiationRecord
impl Unpin for CodecNegotiationRecord
impl UnsafeUnpin for CodecNegotiationRecord
impl UnwindSafe for CodecNegotiationRecord
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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