[][src]Trait pinger::Parser

pub trait Parser: Default {
    fn parse(&self, line: String) -> Option<PingResult>;

    fn extract_regex(&self, regex: &Regex, line: String) -> Option<PingResult> { ... }
}

Required methods

fn parse(&self, line: String) -> Option<PingResult>

Loading content...

Provided methods

fn extract_regex(&self, regex: &Regex, line: String) -> Option<PingResult>

Loading content...

Implementors

impl Parser for LinuxParser[src]

impl Parser for MacOSParser[src]

impl Parser for WindowsParser[src]

Loading content...