pub struct IdentityParser;Expand description
Yields frames unchanged, for formats whose framer already produces items.
Used by every format whose framing cannot be separated from deserialisation. A JSON array element is not self-delimiting, so finding its end and parsing it are one operation.
Trait Implementations§
Source§impl Clone for IdentityParser
impl Clone for IdentityParser
impl Copy for IdentityParser
Source§impl Debug for IdentityParser
impl Debug for IdentityParser
Source§impl Default for IdentityParser
impl Default for IdentityParser
Source§impl<T> FrameParser<Result<T, StreamError>, T> for IdentityParser
impl<T> FrameParser<Result<T, StreamError>, T> for IdentityParser
Source§fn parse(&self, frame: Result<T, StreamError>) -> Result<T, StreamError>
fn parse(&self, frame: Result<T, StreamError>) -> Result<T, StreamError>
Deserialise one framed record. Read more
Auto Trait Implementations§
impl Freeze for IdentityParser
impl RefUnwindSafe for IdentityParser
impl Send for IdentityParser
impl Sync for IdentityParser
impl Unpin for IdentityParser
impl UnsafeUnpin for IdentityParser
impl UnwindSafe for IdentityParser
Blanket Implementations§
impl<T> Allocation for T
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