Trait sawp::probe::Probe[][src]

pub trait Probe<'a>: Protocol<'a> + Parse<'a> {
    fn probe(&self, input: &'a [u8], direction: Direction) -> Status { ... }
}

Provided methods

Probes the input to recognize if the underlying bytes likely match this protocol.

Returns a probe status. Probe again once more data is available when the status is Status::Incomplete.

Implementors