pub struct ChannelHandler { /* private fields */ }
Expand description
Handles the receiving of packets and saves the messages according to their channels.
Implementations§
Source§impl ChannelHandler
impl ChannelHandler
Sourcepub fn handle_packet(&mut self, packet: &[u8]) -> Option<Message>
pub fn handle_packet(&mut self, packet: &[u8]) -> Option<Message>
Handle a new data packet and returns the associated message if it is complete and all its associated packets have been received.
Trait Implementations§
Source§impl Default for ChannelHandler
impl Default for ChannelHandler
Source§fn default() -> ChannelHandler
fn default() -> ChannelHandler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChannelHandler
impl RefUnwindSafe for ChannelHandler
impl Send for ChannelHandler
impl Sync for ChannelHandler
impl Unpin for ChannelHandler
impl UnwindSafe for ChannelHandler
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