Struct vsmtp_mail_parser::BasicParser
pub struct BasicParser;Expand description
Trait Implementations§
§impl Default for BasicParser
impl Default for BasicParser
§fn default() -> BasicParser
fn default() -> BasicParser
Returns the “default value” for a type. Read more
§impl MailParser for BasicParser
impl MailParser for BasicParser
§fn parse_sync(
&mut self,
raw: Vec<Vec<u8>>
) -> ParserResult<Either<RawBody, Mail>>
fn parse_sync( &mut self, raw: Vec<Vec<u8>> ) -> ParserResult<Either<RawBody, Mail>>
From a buffer of strings, return either: Read more
§fn parse<'a, 'async_trait>(
&'a mut self,
stream: impl 'async_trait + Stream<Item = Result<Vec<u8>, ParserError>> + Unpin + Send + 'a
) -> Pin<Box<dyn Future<Output = ParserResult<Either<RawBody, Mail>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'a: 'async_trait,
fn parse<'a, 'async_trait>( &'a mut self, stream: impl 'async_trait + Stream<Item = Result<Vec<u8>, ParserError>> + Unpin + Send + 'a ) -> Pin<Box<dyn Future<Output = ParserResult<Either<RawBody, Mail>>> + Send + 'async_trait>>where Self: Send + 'async_trait, 'a: 'async_trait,
Errors Read more