pub struct ParserState {
pub partial_bin_packet: Mutex<Option<Packet>>,
pub incoming_binary_cnt: AtomicUsize,
}
Expand description
The parser state that is shared between the parser and the socket.io system. Used to handle partial binary packets when receiving binary packets that have adjacent binary attachments
Fields§
§partial_bin_packet: Mutex<Option<Packet>>
Partial binary packet that is being received Stored here until all the binary payloads are received for common parser
incoming_binary_cnt: AtomicUsize
The number of expected binary attachments (used when receiving data for common parser)
Trait Implementations§
Source§impl Debug for ParserState
impl Debug for ParserState
Source§impl Default for ParserState
impl Default for ParserState
Source§fn default() -> ParserState
fn default() -> ParserState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ParserState
impl RefUnwindSafe for ParserState
impl Send for ParserState
impl Sync for ParserState
impl Unpin for ParserState
impl UnwindSafe for ParserState
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