Struct eml_parser::parser::EmlParser [−][src]
Implementations
impl EmlParser[src]
pub fn from_file(filename: impl AsRef<Path>) -> Result<Self, EmlError>[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[src]
impl Send for EmlParser[src]
impl Sync for EmlParser[src]
impl Unpin for EmlParser[src]
impl UnwindSafe for EmlParser[src]
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,
pub 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.
pub 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>,