Struct irc::proto::irc::IrcCodec
[−]
[src]
pub struct IrcCodec { /* fields omitted */ }
An IRC codec built around an inner codec.
Methods
impl IrcCodec
[src]
fn new(label: &str) -> Result<IrcCodec>
[src]
Creates a new instance of IrcCodec wrapping a LineCodec with the specific encoding.
Trait Implementations
impl Decoder for IrcCodec
[src]
type Item = Message
The type of decoded frames.
type Error = IrcError
The type of unrecoverable frame decoding errors. Read more
fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Message>>
[src]
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]
&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