Parser

Trait Parser 

Source
pub trait Parser: Debug {
    // Required method
    fn parse_command<'i>(
        &self,
        input: &'i [u8],
    ) -> Result<(&'i [u8], Box<dyn SmtpSessionCommand>), ParseError>;
}

Required Methods§

Source

fn parse_command<'i>( &self, input: &'i [u8], ) -> Result<(&'i [u8], Box<dyn SmtpSessionCommand>), ParseError>

Implementations on Foreign Types§

Source§

impl Parser for Vec<Arc<dyn Parser + Sync + Send>>

Source§

fn parse_command<'i>( &self, input: &'i [u8], ) -> Result<(&'i [u8], Box<dyn SmtpSessionCommand>), ParseError>

Implementors§

Source§

impl Parser for DummyParser

Source§

impl<T> Parser for Arc<T>
where T: Parser,