Enum saltyrtc_client::Role [−][src]
pub enum Role { Initiator, Responder, }
The role of a peer.
Variants
Initiator
A SaltyRTC compliant client who wants to establish a WebRTC or ORTC peer-to-peer connection to a responder.
Responder
A SaltyRTC compliant client who wants to establish a WebRTC or ORTC peer-to-peer connection to an initiator.
Methods
impl Role
[src]
impl Role
pub fn is_initiator(&self) -> bool
[src]
pub fn is_initiator(&self) -> bool
Return true if this role is the initiator.
pub fn is_responder(&self) -> bool
[src]
pub fn is_responder(&self) -> bool
Return true if this role is the responder.
Trait Implementations
impl Debug for Role
[src]
impl Debug for Role
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Role
[src]
impl PartialEq for Role
fn eq(&self, other: &Role) -> bool
[src]
fn eq(&self, other: &Role) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Role
[src]
impl Eq for Role
impl Copy for Role
[src]
impl Copy for Role
impl Clone for Role
[src]
impl Clone for Role
fn clone(&self) -> Role
[src]
fn clone(&self) -> Role
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Display for Role
[src]
impl Display for Role