Cleaned up imports and prelude.

This commit is contained in:
Aaron Weiss 2017-06-21 22:14:15 -04:00
parent 8c9a1aca2c
commit c0af567258
No known key found for this signature in database
GPG key ID: 0237035D9BF03AE2
6 changed files with 12 additions and 35 deletions

View file

@ -1,32 +1,7 @@
//! Data related to IRC functionality.
pub use proto::caps::{Capability, NegotiationVersion};
pub use proto::command::Command;
pub use client::data::config::Config;
pub use proto::message::Message;
pub use proto::response::Response;
pub use client::data::user::{AccessLevel, User};
pub mod kinds {
//! Trait definitions of appropriate Writers and Buffers for use with this library.
use std::io::prelude::*;
/// Trait describing all possible Writers for this library.
pub trait IrcWrite: Write + Sized + Send + 'static {}
impl<T> IrcWrite for T
where
T: Write + Sized + Send + 'static,
{
}
/// Trait describing all possible Readers for this library.
pub trait IrcRead: BufRead + Sized + Send + 'static {}
impl<T> IrcRead for T
where
T: BufRead + Sized + Send + 'static,
{
}
}
pub mod config;
pub mod user;