[−][src]Struct eml_parser::parser::EmlParser
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
Auto Trait Implementations
impl RefUnwindSafe for EmlParser
impl Send for EmlParser
impl Sync for EmlParser
impl Unpin for EmlParser
impl UnwindSafe for EmlParser
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,