[][src]Struct libimagmail::hasher::MailHasher

pub struct MailHasher;

Trait Implementations

impl Hasher for MailHasher[src]

fn hash<P: AsRef<Path>>(path: P) -> Result<String>[src]

hash the file at path path

We create a sha1 over the path of the file (which is NOT safe, because mails can move) and the Message-ID of the mail itself.

TODO: Fix

The file name is not constant with mail files, because flags are encoded in the filename. The path is not constant with mail files, because they can be moved between boxes.

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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,