Trait sawp::probe::Probe

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

Provided Methods§

source

fn probe(&self, input: &'a [u8], direction: Direction) -> Status

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§