Struct 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
fn convert(self, input: &RawBody) -> ParserResult<Option<Mail>>
Auto Trait Implementations§
impl Freeze for BasicParser
impl RefUnwindSafe for BasicParser
impl Send for BasicParser
impl Sync for BasicParser
impl Unpin for BasicParser
impl UnwindSafe for BasicParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more