- name: Install Rust
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9
with:
- toolchain: 1.88.0
+ toolchain: 1.91.1
components: rustfmt, clippy
- name: Cargo fmt
run: cargo fmt --all -- --check
- name: Install Rust
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9
with:
- toolchain: 1.88.0
+ toolchain: 1.91.1
components: rustfmt, clippy
- name: Install msquic from apt
run: |
}
/// Configures how to process a registration's workload.
-#[derive(Debug, PartialEq, Clone)]
+#[derive(Debug, PartialEq, Clone, Default)]
pub enum ExecutionProfile {
+ #[default]
LowLatency,
MaxThroughput,
Scavenger,
RealTime,
}
-impl Default for ExecutionProfile {
- fn default() -> Self {
- Self::LowLatency
- }
-}
-
impl From<ExecutionProfile> for crate::ffi::QUIC_EXECUTION_PROFILE {
fn from(value: ExecutionProfile) -> Self {
match value {
}
/// Type of credentials used for a connection.
-#[derive(Debug)]
+#[derive(Debug, Default)]
pub enum Credential {
+ #[default]
None,
/// windows schannel only
CertificateHash(CertificateHash),
CertificatePkcs12(CertificatePkcs12),
}
-impl Default for Credential {
- fn default() -> Self {
- Self::None
- }
-}
-
bitflags::bitflags! {
/// Modifies the default credential configuration.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]