[][src]Struct eml_parser::parser::EmlParser

pub struct EmlParser { /* fields omitted */ }

Methods

impl EmlParser[src]

pub fn from_file(filename: impl AsRef<Path>) -> Result<Self, Error>[src]

Read an .eml file from disk, parsing its contents. Note that the current implementation loads the entire file to memory since std::fs::File doesn't provide an iterator over char that could give a Peekable.

pub fn from_string(content: String) -> Self[src]

pub fn ignore_body(self) -> Self[src]

pub fn with_body(self) -> Self[src]

pub fn with_body_preview(self, bytes: usize) -> Self[src]

pub fn parse(&mut self) -> Result<Eml, EmlError>[src]

Trait Implementations

impl Debug for EmlParser[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.