pub struct ParserConfig(/* private fields */);Expand description
The parser to use to encode and decode socket.io packets
Be sure that the selected parser matches the client parser.
Implementations§
Source§impl ParserConfig
impl ParserConfig
Sourcepub fn common() -> Self
pub fn common() -> Self
Use a CommonParser to parse incoming and outgoing socket.io packets
Sourcepub fn msgpack() -> Self
Available on crate feature msgpack only.
pub fn msgpack() -> Self
msgpack only.Use a MsgPackParser to parse incoming and outgoing socket.io packets
Trait Implementations§
Source§impl Clone for ParserConfig
impl Clone for ParserConfig
Source§fn clone(&self) -> ParserConfig
fn clone(&self) -> ParserConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParserConfig
impl RefUnwindSafe for ParserConfig
impl Send for ParserConfig
impl Sync for ParserConfig
impl Unpin for ParserConfig
impl UnwindSafe for ParserConfig
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