embystream 0.0.36

Another Emby streaming application (frontend/backend separation) written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::fmt;

/// Cryptographic operation type.
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum CryptoOperation {
    Encrypt,
    Decrypt,
}

impl fmt::Display for CryptoOperation {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            CryptoOperation::Encrypt => write!(f, "Encrypt"),
            CryptoOperation::Decrypt => write!(f, "Decrypt"),
        }
    }
}