//! Arguments of the `Disconnected` event.
/// Raised when the connection is closed or lost.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]pubstructDisconnectedEventArgs{/// `true` if the disconnect was requested locally, through `disconnect`.
pubuser_initiated:bool,
}implDisconnectedEventArgs{/// Creates a new instance.
pubfnnew(user_initiated:bool)->Self{Self{ user_initiated }}}