pub struct EngineConfig {
pub initial_message_id: MessageId,
pub fragment_bytes: usize,
pub max_retransmit_attempts: u8,
pub retransmit_timeout_ms: u64,
pub reassembly_timeout_ms: u64,
pub integrity: IntegrityConfig,
}Expand description
Minimal protocol engine configuration.
Fields§
§initial_message_id: MessageIdFirst message identifier used by this engine.
fragment_bytes: usizeMaximum message fragment bytes written into one packet.
max_retransmit_attempts: u8Maximum retransmission attempts before a packet is considered failed.
retransmit_timeout_ms: u64Ticks that must elapse before an in-flight packet is eligible for retransmission.
reassembly_timeout_ms: u64Ticks after which incomplete reassembly slots are released.
integrity: IntegrityConfigPacket integrity backend used by this engine.
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
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 moreimpl Copy for EngineConfig
Source§impl Debug for EngineConfig
impl Debug for EngineConfig
Source§impl Default for EngineConfig
impl Default for EngineConfig
Source§fn default() -> EngineConfig
fn default() -> EngineConfig
Returns the “default value” for a type. Read more
impl Eq for EngineConfig
Source§impl PartialEq for EngineConfig
impl PartialEq for EngineConfig
Source§fn eq(&self, other: &EngineConfig) -> bool
fn eq(&self, other: &EngineConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EngineConfig
Auto Trait Implementations§
impl Freeze for EngineConfig
impl RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnsafeUnpin for EngineConfig
impl UnwindSafe for EngineConfig
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