pub struct MessageManager<P: ProtocolType> { /* private fields */ }
Expand description

Handles incoming/outgoing messages, tracks the delivery status of Messages so that guaranteed Messages can be re-transmitted to the remote host

Implementations

Creates a new MessageManager

Returns whether the Manager has queued Messages that can be transmitted to the remote host

Gets the next queued Message to be transmitted

If the last popped Message from the queue somehow wasn’t able to be written into a packet, put the Message back into the front of the queue

Queues an Message to be transmitted to the remote host

Returns whether any Messages have been received that must be handed to the application

Get the most recently received Message

Given incoming packet data, read transmitted Messages and store them to be returned to the application

Trait Implementations

Formats the value using the given formatter. Read more

Occurs when a packet has been notified as delivered. Stops tracking the status of Messages in that packet.

Occurs when a packet has been notified as having been dropped. Queues up any guaranteed Messages that were lost in the packet for retransmission.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.