pub struct FrameAssembly { /* private fields */ }Expand description
Representation of a partially received frame.
Implementations§
Source§impl FrameAssembly
impl FrameAssembly
Sourcepub fn new(
block_id: u16,
expected_packets: usize,
packet_payload: usize,
buffer: BytesMut,
deadline: Instant,
) -> Self
pub fn new( block_id: u16, expected_packets: usize, packet_payload: usize, buffer: BytesMut, deadline: Instant, ) -> Self
Create a new frame assembly using the supplied buffer.
Sourcepub fn is_expired(&self, now: Instant) -> bool
pub fn is_expired(&self, now: Instant) -> bool
Whether the reassembly deadline has elapsed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameAssembly
impl RefUnwindSafe for FrameAssembly
impl Send for FrameAssembly
impl Sync for FrameAssembly
impl Unpin for FrameAssembly
impl UnwindSafe for FrameAssembly
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