Client internal structures do not need to be public

This commit is contained in:
Alexis Mousset
2015-03-02 15:27:50 +01:00
parent 375900b7aa
commit d262947848

View File

@@ -33,13 +33,13 @@ use client::connecter::Connecter;
use client::server_info::ServerInfo;
use client::stream::ClientStream;
pub mod server_info;
pub mod connecter;
pub mod stream;
mod server_info;
mod connecter;
mod stream;
/// Represents the configuration of a client
#[derive(Debug)]
pub struct Configuration {
struct Configuration {
/// Maximum connection reuse
///
/// Zero means no limitation
@@ -54,7 +54,7 @@ pub struct Configuration {
/// Represents the state of a client
#[derive(Debug)]
pub struct State {
struct State {
/// Panic state
pub panic: bool,
/// Connection reuse counter
@@ -63,7 +63,7 @@ pub struct State {
/// Represents the credentials
#[derive(Debug, Clone)]
pub struct Credentials {
struct Credentials {
/// Username
pub username: String,
/// Password