pub struct CallNegotiateEventContent {
pub call_id: OwnedVoipId,
pub party_id: OwnedVoipId,
pub lifetime: UInt,
pub description: SessionDescription,
}
events
and unstable-msc2746
only.Expand description
Added in VoIP version 1. The content of an m.call.negotiate
event.
This event is sent by either party after the call is established to renegotiate it. It can be used for media pause, hold/resume, ICE restarts and voice/video call up/downgrading.
First an event must be sent with an offer
session description, which is replied to with an
event with an answer
session description.
Fields
call_id: OwnedVoipId
The ID of the call this event relates to.
party_id: OwnedVoipId
The unique ID for this session for the duration of the call.
Must be the same as the one sent by the previous invite or answer from this session.
lifetime: UInt
The time in milliseconds that the negotiation is valid for.
description: SessionDescription
The session description of the negotiation.
Implementations
sourceimpl CallNegotiateEventContent
impl CallNegotiateEventContent
sourcepub fn new(
call_id: OwnedVoipId,
party_id: OwnedVoipId,
lifetime: UInt,
description: SessionDescription
) -> CallNegotiateEventContent
pub fn new(
call_id: OwnedVoipId,
party_id: OwnedVoipId,
lifetime: UInt,
description: SessionDescription
) -> CallNegotiateEventContent
Creates a CallNegotiateEventContent
with the given call ID, party ID, lifetime and
description.
Trait Implementations
sourceimpl Clone for CallNegotiateEventContent
impl Clone for CallNegotiateEventContent
sourcefn clone(&self) -> CallNegotiateEventContent
fn clone(&self) -> CallNegotiateEventContent
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for CallNegotiateEventContent
impl Debug for CallNegotiateEventContent
sourceimpl<'de> Deserialize<'de> for CallNegotiateEventContent
impl<'de> Deserialize<'de> for CallNegotiateEventContent
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<CallNegotiateEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<CallNegotiateEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
sourceimpl EventContent for CallNegotiateEventContent
impl EventContent for CallNegotiateEventContent
type EventType = MessageLikeEventType
type EventType = MessageLikeEventType
sourcefn event_type(&self) -> <CallNegotiateEventContent as EventContent>::EventType
fn event_type(&self) -> <CallNegotiateEventContent as EventContent>::EventType
m.room.message
.sourceimpl From<CallNegotiateEventContent> for AnyMessageLikeEventContent
impl From<CallNegotiateEventContent> for AnyMessageLikeEventContent
sourcefn from(c: CallNegotiateEventContent) -> AnyMessageLikeEventContent
fn from(c: CallNegotiateEventContent) -> AnyMessageLikeEventContent
sourceimpl RedactContent for CallNegotiateEventContent
impl RedactContent for CallNegotiateEventContent
type Redacted = RedactedCallNegotiateEventContent
type Redacted = RedactedCallNegotiateEventContent
sourcefn redact(self, version: &RoomVersionId) -> RedactedCallNegotiateEventContent
fn redact(self, version: &RoomVersionId) -> RedactedCallNegotiateEventContent
self
into a redacted form (removing most or all fields) according to the spec. Read more