pub enum NegotiationRole {
Offerer,
Answerer(String),
}Expand description
Peer’s negotiation role.
Some Events can trigger SDP negotiation:
- If
EventcontainsNegotiationRole::Offerer, thenPeeris expected to create SDP Offer and send it viaCommand::MakeSdpOffer. - If
EventcontainsNegotiationRole::Answerer, thenPeeris expected to apply provided SDP Offer and provide its SDP Answer in aCommand::MakeSdpAnswer.
Variants§
Offerer
Command::MakeSdpOffer should be sent by client.
Answerer(String)
Command::MakeSdpAnswer should be sent by client.
Trait Implementations§
Source§impl Clone for NegotiationRole
impl Clone for NegotiationRole
Source§fn clone(&self) -> NegotiationRole
fn clone(&self) -> NegotiationRole
Returns a duplicate 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 NegotiationRole
impl Debug for NegotiationRole
Source§impl<'de> Deserialize<'de> for NegotiationRole
impl<'de> Deserialize<'de> for NegotiationRole
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 PartialEq for NegotiationRole
impl PartialEq for NegotiationRole
Source§impl Serialize for NegotiationRole
impl Serialize for NegotiationRole
impl Eq for NegotiationRole
impl StructuralPartialEq for NegotiationRole
Auto Trait Implementations§
impl Freeze for NegotiationRole
impl RefUnwindSafe for NegotiationRole
impl Send for NegotiationRole
impl Sync for NegotiationRole
impl Unpin for NegotiationRole
impl UnwindSafe for NegotiationRole
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