pub struct FragmentedEvent {
pub message_id: u32,
pub fragment_index: u16,
pub total_fragments: u16,
pub payload: Vec<u8>,
}Expand description
An event representing a fragment of a larger message. Used for MTU stability to prevent packet drops and enable reassembly.
Fields§
§message_id: u32Unique identifier for the fragmented message.
fragment_index: u16The index of this fragment (0-based).
total_fragments: u16Total number of fragments for this message.
payload: Vec<u8>The raw payload of this fragment.
Trait Implementations§
Source§impl Clone for FragmentedEvent
impl Clone for FragmentedEvent
Source§fn clone(&self) -> FragmentedEvent
fn clone(&self) -> FragmentedEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 FragmentedEvent
impl Debug for FragmentedEvent
Source§impl<'de> Deserialize<'de> for FragmentedEvent
impl<'de> Deserialize<'de> for FragmentedEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FragmentedEvent
impl PartialEq for FragmentedEvent
Source§impl Serialize for FragmentedEvent
impl Serialize for FragmentedEvent
impl Eq for FragmentedEvent
impl StructuralPartialEq for FragmentedEvent
Auto Trait Implementations§
impl Freeze for FragmentedEvent
impl RefUnwindSafe for FragmentedEvent
impl Send for FragmentedEvent
impl Sync for FragmentedEvent
impl Unpin for FragmentedEvent
impl UnsafeUnpin for FragmentedEvent
impl UnwindSafe for FragmentedEvent
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