pub trait FileBasedMediaStreamClassifier:
Debug
+ Send
+ Sync {
// Required method
fn classify_by_local_file(&self, file: &Path) -> MimeResult<MediaStreamType>;
}Expand description
Core implementation contract for classifiers that only operate on local files.
Required Methods§
Sourcefn classify_by_local_file(&self, file: &Path) -> MimeResult<MediaStreamType>
fn classify_by_local_file(&self, file: &Path) -> MimeResult<MediaStreamType>
Classifies one validated local file.
§Parameters
file: Readable local media file.
§Returns
Media stream classification.
§Errors
Returns MimeError::Io or another MimeError
when backend classification fails.