pub struct DeviceProfile {
pub tier: DeviceTier,
pub cipher: CipherSuite,
pub pq_kem: PqKemLevel,
pub pq_sign: PqSignLevel,
pub buffer_size: usize,
pub max_streams: u16,
pub coalescing: bool,
pub max_datagram_size: usize,
pub compression: bool,
pub max_payload: usize,
}Expand description
Complete device profile — all transport parameters
Fields§
§tier: DeviceTierDevice classification
cipher: CipherSuitePreferred cipher suite
pq_kem: PqKemLevelPQ KEM level (always present — PQ is mandatory)
pq_sign: PqSignLevelPQ signature level (always present)
buffer_size: usizeBuffer size for I/O operations
max_streams: u16Maximum concurrent streams
coalescing: boolEnable UDP packet coalescing
max_datagram_size: usizeMaximum coalesced datagram size
compression: boolEnable compression
max_payload: usizeMaximum packet payload size
Implementations§
Source§impl DeviceProfile
impl DeviceProfile
Sourcepub fn auto_detect() -> Self
pub fn auto_detect() -> Self
Auto-detect the optimal profile for this device
Sourcepub fn for_tier(tier: DeviceTier, caps: &HwCaps) -> Self
pub fn for_tier(tier: DeviceTier, caps: &HwCaps) -> Self
Create a profile for a specific tier with given HW caps
Sourcepub fn constrained() -> Self
pub fn constrained() -> Self
Create a specific named profile
pub fn standard() -> Self
pub fn performance() -> Self
Sourcepub fn is_full_pq(&self) -> bool
pub fn is_full_pq(&self) -> bool
Whether this profile supports the full PQ handshake (Kyber768)
Trait Implementations§
Source§impl Clone for DeviceProfile
impl Clone for DeviceProfile
Source§fn clone(&self) -> DeviceProfile
fn clone(&self) -> DeviceProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceProfile
impl Debug for DeviceProfile
Auto Trait Implementations§
impl Freeze for DeviceProfile
impl RefUnwindSafe for DeviceProfile
impl Send for DeviceProfile
impl Sync for DeviceProfile
impl Unpin for DeviceProfile
impl UnsafeUnpin for DeviceProfile
impl UnwindSafe for DeviceProfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more