matchbox_socket 0.14.0

Painless WebRTC peer-to-peer full-mesh networking socket
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Error definitions for socket operations.

pub use crate::webrtc_socket::error::SignalingError;

/// Errors that can happen when using Matchbox sockets.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// An error occurring if the connection fails to establish. Perhaps check your connection or
    /// try again.
    #[error("The connection failed to establish. Check your connection and try again.")]
    ConnectionFailed(SignalingError),
    /// Disconnected from the signaling server
    #[error("The signaling server connection was severed.")]
    Disconnected(SignalingError),
}