Enum saltyrtc_client::Role[][src]

pub enum Role {
    Initiator,
    Responder,
}

The role of a peer.

Variants

A SaltyRTC compliant client who wants to establish a WebRTC or ORTC peer-to-peer connection to a responder.

A SaltyRTC compliant client who wants to establish a WebRTC or ORTC peer-to-peer connection to an initiator.

Methods

impl Role
[src]

Return true if this role is the initiator.

Return true if this role is the responder.

Trait Implementations

impl Debug for Role
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Role
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Role
[src]

impl Copy for Role
[src]

impl Clone for Role
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Role
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Role

impl Sync for Role