bornera 0.0.1-rc.4

Deterministic connection ownership for native protocol clients.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Narrow protocol-owned classification of reply correlation identities.

use bornera_core::MatchKey;

/// Classifies one complete opaque frame as a correlated reply.
///
/// The first production matcher intentionally accepts only replies. Push
/// traffic remains absent until a second protocol proves its ownership model.
pub trait InboundClassifier<F> {
    /// Protocol-specific classification failure.
    type Error;

    /// Extracts the match key without taking ownership of the complete frame.
    fn reply_key(&mut self, frame: &F) -> Result<MatchKey, Self::Error>;
}