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
Source§fn clone(&self) -> IdentityParser
fn clone(&self) -> IdentityParser
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IdentityParser
Source§impl Debug for IdentityParser
impl Debug for IdentityParser
Source§impl Default for IdentityParser
impl Default for IdentityParser
Source§fn default() -> IdentityParser
fn default() -> IdentityParser
Returns the “default value” for a type. Read more
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