Struct tokio_hglib::codec::ChannelCodec [−][src]
pub struct ChannelCodec {}
Decoder to parse and split messages sent from Mercurial command server.
Methods
impl ChannelCodec
[src]
impl ChannelCodec
pub fn new() -> ChannelCodec
[src]
pub fn new() -> ChannelCodec
Trait Implementations
impl Debug for ChannelCodec
[src]
impl Debug for ChannelCodec
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Decoder for ChannelCodec
[src]
impl Decoder for ChannelCodec
type Item = ChannelMessage
The type of decoded frames.
type Error = Error
The type of unrecoverable frame decoding errors. Read more
fn decode(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
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
fn decode_eof(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
fn decode_eof(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
fn framed<T>(self, io: T) -> Framed<T, Self> where
Self: Encoder,
T: AsyncRead + AsyncWrite,
[src]
fn framed<T>(self, io: T) -> Framed<T, Self> where
Self: Encoder,
T: AsyncRead + AsyncWrite,
Provides a Stream
and Sink
interface for reading and writing to this Io
object, using Decode
and Encode
to read and write the raw data. Read more
Auto Trait Implementations
impl Send for ChannelCodec
impl Send for ChannelCodec
impl Sync for ChannelCodec
impl Sync for ChannelCodec