Enum saltyrtc_client::Event[][src]

pub enum Event {
    ServerHandshakeDone(bool),
    PeerHandshakeDone,
    Disconnected(u8),
}

Non-message events that may happen during connection.

Variants

Server handshake is done.

The boolean indicates whether a peer is already connected + authenticated.

Peer handshake is done.

An authenticated peer disconnected from the server.

Trait Implementations

impl Debug for Event
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Event
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for Event

impl Sync for Event