Struct ruma_events::call::candidates::CallCandidatesEventContent
source · pub struct CallCandidatesEventContent {
pub call_id: OwnedVoipId,
pub party_id: Option<OwnedVoipId>,
pub candidates: Vec<Candidate>,
pub version: VoipVersionId,
}
Expand description
The content of an m.call.candidates
event.
This event is sent by callers after sending an invite and by the callee after answering. Its purpose is to give the other party additional ICE candidates to try using to communicate.
Fields§
§call_id: OwnedVoipId
A unique identifier for the call.
party_id: Option<OwnedVoipId>
Required in VoIP version 1. 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.
candidates: Vec<Candidate>
A list of candidates.
In VoIP version 1, this list should end with a Candidate
with an empty candidate
field
when no more candidates will be sent.
version: VoipVersionId
The version of the VoIP specification this messages adheres to.
Implementations§
source§impl CallCandidatesEventContent
impl CallCandidatesEventContent
sourcepub fn new(
call_id: OwnedVoipId,
candidates: Vec<Candidate>,
version: VoipVersionId,
) -> Self
pub fn new( call_id: OwnedVoipId, candidates: Vec<Candidate>, version: VoipVersionId, ) -> Self
Creates a new CallCandidatesEventContent
with the given call id, candidate list and VoIP
version.
Trait Implementations§
source§impl Clone for CallCandidatesEventContent
impl Clone for CallCandidatesEventContent
source§fn clone(&self) -> CallCandidatesEventContent
fn clone(&self) -> CallCandidatesEventContent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CallCandidatesEventContent
impl Debug for CallCandidatesEventContent
source§impl<'de> Deserialize<'de> for CallCandidatesEventContent
impl<'de> Deserialize<'de> for CallCandidatesEventContent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl EventContent for CallCandidatesEventContent
impl EventContent for CallCandidatesEventContent
source§type EventType = MessageLikeEventType
type EventType = MessageLikeEventType
The Rust enum for the event kind’s known types.
source§fn event_type(&self) -> Self::EventType
fn event_type(&self) -> Self::EventType
Get the event’s type, like
m.room.message
.source§impl From<CallCandidatesEventContent> for AnyMessageLikeEventContent
impl From<CallCandidatesEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallCandidatesEventContent) -> Self
fn from(c: CallCandidatesEventContent) -> Self
Converts to this type from the input type.
source§impl RedactContent for CallCandidatesEventContent
impl RedactContent for CallCandidatesEventContent
source§type Redacted = RedactedCallCandidatesEventContent
type Redacted = RedactedCallCandidatesEventContent
The redacted form of the event’s content.
source§fn redact(self, version: &RoomVersionId) -> RedactedCallCandidatesEventContent
fn redact(self, version: &RoomVersionId) -> RedactedCallCandidatesEventContent
Transform
self
into a redacted form (removing most or all fields) according to the spec. Read moreimpl MessageLikeEventContent for CallCandidatesEventContent
Auto Trait Implementations§
impl Freeze for CallCandidatesEventContent
impl RefUnwindSafe for CallCandidatesEventContent
impl Send for CallCandidatesEventContent
impl Sync for CallCandidatesEventContent
impl Unpin for CallCandidatesEventContent
impl UnwindSafe for CallCandidatesEventContent
Blanket Implementations§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)