[][src]Struct melib::backends::notmuch::Message

pub struct Message<'m> {
    pub lib: Arc<Library>,
    pub message: *mut notmuch_message_t,
    pub is_from_thread: bool,
    pub _ph: PhantomData<&'m notmuch_message_t>,
}

Fields

lib: Arc<Library>message: *mut notmuch_message_tis_from_thread: bool_ph: PhantomData<&'m notmuch_message_t>

Implementations

impl<'m> Message<'m>[src]

pub fn find_message(db: &'m DbConnection, msg_id: &CStr) -> Result<Message<'m>>[src]

pub fn env_hash(&self) -> EnvelopeHash[src]

pub fn msg_id(&self) -> &[u8][src]

pub fn msg_id_cstr(&self) -> &CStr[src]

pub fn date(&self) -> UnixTimestamp[src]

pub fn into_envelope(
    self,
    index: Arc<RwLock<HashMap<EnvelopeHash, CString>>>,
    tag_index: Arc<RwLock<BTreeMap<u64, String>>>
) -> Result<Envelope>
[src]

pub fn replies_iter(&self) -> Option<MessageIterator<'_>>[src]

pub fn into_thread_node(&self) -> (ThreadNodeHash, ThreadNode)[src]

pub fn add_tag(&self, tag: &CStr) -> Result<()>[src]

pub fn remove_tag(&self, tag: &CStr) -> Result<()>[src]

pub fn tags(&'m self) -> TagIterator<'m>

Notable traits for TagIterator<'m>

impl<'m> Iterator for TagIterator<'m> type Item = &'m CStr;
[src]

pub fn tags_to_maildir_flags(&self) -> Result<()>[src]

pub fn get_filename(&self) -> &OsStr[src]

Trait Implementations

impl<'m> Clone for Message<'m>[src]

impl<'_> Drop for Message<'_>[src]

Auto Trait Implementations

impl<'m> RefUnwindSafe for Message<'m>

impl<'m> !Send for Message<'m>

impl<'m> !Sync for Message<'m>

impl<'m> Unpin for Message<'m>

impl<'m> UnwindSafe for Message<'m>

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> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>, 

impl<T> WithSubscriber for T[src]