Implemented a major redesign to simplify API and eliminate
overly-complicated generics usage.
This commit is contained in:
parent
bacf6d019e
commit
3314c93c3e
5 changed files with 214 additions and 167 deletions
|
@ -174,7 +174,7 @@ impl Config {
|
|||
self.ping_timeout.as_ref().map(|t| *t).unwrap_or(10)
|
||||
}
|
||||
|
||||
/// Gets whether or not to use NickServ GHOST
|
||||
/// Gets whether or not to attempt nickname reclamation using NickServ GHOST.
|
||||
/// This defaults to false when not specified.
|
||||
pub fn should_ghost(&self) -> bool {
|
||||
self.should_ghost.as_ref().map(|u| *u).unwrap_or(false)
|
||||
|
|
|
@ -14,6 +14,7 @@ pub mod kinds {
|
|||
/// 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 {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue