Skip to main content

Classifier

Trait Classifier 

Source
pub trait Classifier {
    // Required method
    fn classify(&self, data: &[u8]) -> Type;
}
Expand description

Classifies a raw wire protocol message as a read, a write, a transaction statement or unknown. Implement it to route another protocol.

PHP: Utopia\Query\Classifier.

Required Methods§

Source

fn classify(&self, data: &[u8]) -> Type

The classification of the raw message data.

PHP: Classifier::classify().

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§