Struct json_lines::codec::JsonLinesCodec
source · pub struct JsonLinesCodec<D, S> { /* private fields */ }
Expand description
JSON Lines text format, also called newline-delimited JSON.
Trait Implementations§
source§impl<D, S> Decoder for JsonLinesCodec<D, S>where
D: DeserializeOwned,
impl<D, S> Decoder for JsonLinesCodec<D, S>where
D: DeserializeOwned,
source§fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Self::Item>>
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Self::Item>>
Attempts to decode a frame from the provided buffer of bytes. Read more
source§impl<D, S> Default for JsonLinesCodec<D, S>
impl<D, S> Default for JsonLinesCodec<D, S>
Auto Trait Implementations§
impl<D, S> Freeze for JsonLinesCodec<D, S>
impl<D, S> RefUnwindSafe for JsonLinesCodec<D, S>where
D: RefUnwindSafe,
S: RefUnwindSafe,
impl<D, S> Send for JsonLinesCodec<D, S>
impl<D, S> Sync for JsonLinesCodec<D, S>
impl<D, S> Unpin for JsonLinesCodec<D, S>
impl<D, S> UnwindSafe for JsonLinesCodec<D, S>where
D: UnwindSafe,
S: UnwindSafe,
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