Struct vsmtp_mail_parser::MailMimeParser
pub struct MailMimeParser { /* private fields */ }Expand description
Instance parsing a message body
Trait Implementations§
§impl Default for MailMimeParser
impl Default for MailMimeParser
§fn default() -> MailMimeParser
fn default() -> MailMimeParser
Returns the “default value” for a type. Read more
§impl MailParser for MailMimeParser
impl MailParser for MailMimeParser
§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