pub struct ChannelDecoder {}
Expand description
Decoder to parse and split messages sent from Mercurial command server.
Implementations§
Source§impl ChannelDecoder
impl ChannelDecoder
pub fn new() -> ChannelDecoder
Trait Implementations§
Source§impl Debug for ChannelDecoder
impl Debug for ChannelDecoder
Source§impl Decoder for ChannelDecoder
impl Decoder for ChannelDecoder
Source§type Item = ChannelMessage
type Item = ChannelMessage
The type of decoded frames.
Source§fn decode(
&mut self,
src: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>
fn decode( &mut self, src: &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 ChannelDecoder
impl RefUnwindSafe for ChannelDecoder
impl Send for ChannelDecoder
impl Sync for ChannelDecoder
impl Unpin for ChannelDecoder
impl UnwindSafe for ChannelDecoder
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