twitchchat 0.14.8

interface to the irc-side of twitch's chat system
use crate::messages::Commands;

/// Result of a single step of the loop
#[derive(Debug)]
pub enum StepResult<'a> {
    /// A status was produced
    Status(Status<'a>),
    /// Nothing was produced, try again
    Nothing,
}

/// Status produced by the loop
#[derive(Debug)]
pub enum Status<'a> {
    /// A message was produced
    Message(Commands<'a>),
    /// The user quit the loop
    Quit,
    /// Loop run to completion
    Eof,
}