pub struct ReliableClientReceiver { /* private fields */ }Expand description
Bounded reliable client receiver state.
Implementations§
Source§impl ReliableClientReceiver
impl ReliableClientReceiver
Sourcepub fn new(config: ReliableClientConfig) -> Self
pub fn new(config: ReliableClientConfig) -> Self
Creates a bounded reliable client receiver.
Sourcepub const fn config(&self) -> ReliableClientConfig
pub const fn config(&self) -> ReliableClientConfig
Returns receiver configuration.
Sourcepub const fn stats(&self) -> ReliableClientStats
pub const fn stats(&self) -> ReliableClientStats
Returns receiver statistics.
Sourcepub fn handle_data<T: TransportSink>(
&mut self,
transport: &mut T,
packet: InboundPacket,
source_client: ClientId,
sequence: u64,
payload: Vec<u8>,
) -> Result<Option<InboundPacket>, ReliableClientError<T::Error>>
pub fn handle_data<T: TransportSink>( &mut self, transport: &mut T, packet: InboundPacket, source_client: ClientId, sequence: u64, payload: Vec<u8>, ) -> Result<Option<InboundPacket>, ReliableClientError<T::Error>>
Handles a reliable data packet, sends an ACK, and returns a payload only for first delivery.
Trait Implementations§
Source§impl Clone for ReliableClientReceiver
impl Clone for ReliableClientReceiver
Source§fn clone(&self) -> ReliableClientReceiver
fn clone(&self) -> ReliableClientReceiver
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 ReliableClientReceiver
impl Debug for ReliableClientReceiver
Auto Trait Implementations§
impl Freeze for ReliableClientReceiver
impl RefUnwindSafe for ReliableClientReceiver
impl Send for ReliableClientReceiver
impl Sync for ReliableClientReceiver
impl Unpin for ReliableClientReceiver
impl UnsafeUnpin for ReliableClientReceiver
impl UnwindSafe for ReliableClientReceiver
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