steamkit-rs 0.1.2

Rust port of SteamKit2, a .NET library that aims to interoperate with the Steam network.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Arguments of the `Disconnected` event.

/// Raised when the connection is closed or lost.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct DisconnectedEventArgs {
    /// `true` if the disconnect was requested locally, through `disconnect`.
    pub user_initiated: bool,
}

impl DisconnectedEventArgs {
    /// Creates a new instance.
    pub fn new(user_initiated: bool) -> Self {
        Self { user_initiated }
    }
}