pub struct SmtpCodec { /* private fields */ }
Expand description
Low level SMTP codec that handles command lines and data on top of a raw byte stream
Simple rule: return as soon as we have something certain and return as much as we can of it. Keep uncertain bytes in the buffer.
Implementations
Trait Implementations
sourceimpl Decoder for SmtpCodec
impl Decoder for SmtpCodec
type Item = ServerControll
type Item = ServerControll
The type of decoded frames.
sourcefn decode(&mut self, buf: &mut BytesMut) -> Result<Option<ServerControll>, Error>
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<ServerControll>, Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations
impl RefUnwindSafe for SmtpCodec
impl Send for SmtpCodec
impl Sync for SmtpCodec
impl Unpin for SmtpCodec
impl UnwindSafe for SmtpCodec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more