pub struct ImapMessageThread { /* private fields */ }Expand description
I/O-free IMAP THREAD coroutine.
Implementations§
Source§impl ImapMessageThread
impl ImapMessageThread
Sourcepub fn new(
algorithm: ThreadingAlgorithm<'static>,
search_criteria: Vec1<SearchKey<'static>>,
opts: ImapMessageThreadOptions,
) -> Self
pub fn new( algorithm: ThreadingAlgorithm<'static>, search_criteria: Vec1<SearchKey<'static>>, opts: ImapMessageThreadOptions, ) -> Self
Creates a coroutine that THREADs the messages matching
search_criteria with algorithm and returns the thread tree.
Trait Implementations§
Source§impl ImapCoroutine for ImapMessageThread
impl ImapCoroutine for ImapMessageThread
Source§type Return = Result<Vec<Thread>, ImapMessageThreadError>
type Return = Result<Vec<Thread>, ImapMessageThreadError>
The final value produced on completion.
Source§fn resume(
&mut self,
fragmentizer: &mut Fragmentizer,
arg: Option<&[u8]>,
) -> ImapCoroutineState<Self::Yield, Self::Return>
fn resume( &mut self, fragmentizer: &mut Fragmentizer, arg: Option<&[u8]>, ) -> ImapCoroutineState<Self::Yield, Self::Return>
Pass
None initially or after a WantsWrite, Some(bytes)
after a WantsRead, Some(&[]) on EOF.Auto Trait Implementations§
impl Freeze for ImapMessageThread
impl RefUnwindSafe for ImapMessageThread
impl Send for ImapMessageThread
impl Sync for ImapMessageThread
impl Unpin for ImapMessageThread
impl UnsafeUnpin for ImapMessageThread
impl UnwindSafe for ImapMessageThread
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more