hayate 2.0.0

Completion-based QUIC transfer engine for Hayate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Dynamically detects if the host CPU possesses hardware AES acceleration.
#[inline]
#[must_use]
pub fn is_aes_hw_accelerated() -> bool {
    #[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
    {
        std::is_x86_feature_detected!("aes")
    }
    #[cfg(target_arch = "aarch64")]
    {
        std::arch::is_aarch64_feature_detected!("aes")
    }
    #[cfg(not(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64")))]
    {
        false
    }
}