pub struct Boundary;Expand description
A codec working with JSONRPC 2.0 messages.
This produces or encodes Message. It takes the JSON object boundaries, so it works with both newline-separated and object-separated encoding. It produces newline-separated stream, which is more generic.
Trait Implementations§
Source§impl Decoder for Boundary
impl Decoder for Boundary
Source§fn decode(&mut self, src: &mut BytesMut) -> IoResult<Option<Parsed>>
fn decode(&mut self, src: &mut BytesMut) -> IoResult<Option<Parsed>>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl Freeze for Boundary
impl RefUnwindSafe for Boundary
impl Send for Boundary
impl Sync for Boundary
impl Unpin for Boundary
impl UnwindSafe for Boundary
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