pub struct JsonCodec {
max_size: usize,
}Expand description
Default JSON codec with configurable max payload size.
Fields§
§max_size: usizeImplementations§
Trait Implementations§
Source§impl Codec<Buffer> for JsonCodec
impl Codec<Buffer> for JsonCodec
Source§impl Codec<Message> for JsonCodec
Available on crate feature ws only.WS codec for JSON values over WebSocket text messages.
impl Codec<Message> for JsonCodec
Available on crate feature
ws only.WS codec for JSON values over WebSocket text messages.
Auto Trait Implementations§
impl Freeze for JsonCodec
impl RefUnwindSafe for JsonCodec
impl Send for JsonCodec
impl Sync for JsonCodec
impl Unpin for JsonCodec
impl UnsafeUnpin for JsonCodec
impl UnwindSafe for JsonCodec
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