pub struct LspCodec { /* private fields */ }
Trait Implementations§
Source§impl Decoder for LspCodec
impl Decoder for LspCodec
Source§type Error = <LspEncoder as Encoder<Value>>::Error
type Error = <LspEncoder as Encoder<Value>>::Error
The type of unrecoverable frame decoding errors. Read more
Source§fn decode(
&mut self,
buf: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>
fn decode( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl Freeze for LspCodec
impl RefUnwindSafe for LspCodec
impl Send for LspCodec
impl Sync for LspCodec
impl Unpin for LspCodec
impl UnwindSafe for LspCodec
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