fn print_failure_message(result: &ExitCodes) -> () {
    match *result {
        ExitCodes::Unknown => {
            println!("You broke axfrnotify. Now go and fix it.");
        },
        ExitCodes::InputError(ref msg) => {
            println!("Failed to parse input because {}", msg);
        },
        ExitCodes::NotifySucceeded=> {
            println!("Successfully sent notification and received positive response.");
        },
        ExitCodes::NotifyFailed => {
            println!("Successfully sent notification but received negative response.");
        },
        ExitCodes::FailedToCreateEvenLoop => {
            println!("Failed to create event loop.");
        },
        ExitCodes::TransportError(ref msg)=> {
            println!("Failed to send query or receive response because {}.", msg);
        },
    }
}
/// Translates user facing errors into human readable error messages.
Translates user facing errors into human readable error messages.
Translates user facing errors into human readable error messages .
fn print_failure_message(result: &ExitCodes) -> () {
    match *result {
        ExitCodes::Unknown => {
            println!("You broke axfrnotify. Now go and fix it.");
        },
        ExitCodes::InputError(ref msg) => {
            println!("Failed to parse input because {}", msg);
        },
        ExitCodes::NotifySucceeded=> {
            println!("Successfully sent notification and received positive response.");
        },
        ExitCodes::NotifyFailed => {
            println!("Successfully sent notification but received negative response.");
        },
        ExitCodes::FailedToCreateEvenLoop => {
            println!("Failed to create event loop.");
        },
        ExitCodes::TransportError(ref msg)=> {
            println!("Failed to send query or receive response because {}.", msg);
        },
    }
}
fn print_failure_message ( result : & ExitCodes ) -> ( ) { match * result { ExitCodes :: Unknown => { println ! ( " " ) ; } , ExitCodes :: InputError ( ref msg ) => { println ! ( " " msg ) ; } , ExitCodes :: NotifySucceeded => { println ! ( " " ) ; } , ExitCodes :: NotifyFailed => { println ! ( " " ) ; } , ExitCodes :: FailedToCreateEvenLoop => { println ! ( " " ) ; } , ExitCodes :: TransportError ( ref msg ) => { println ! ( " " msg ) ; } , } }
Translates user facing errors into human readable error messages.
Translates user facing errors into human readable error messages .
result
&ExitCodes
result
&ExitCodes