pub struct ImapMessageThread { /* private fields */ }Expand description
I/O-free IMAP THREAD coroutine.
Implementations§
Source§impl ImapMessageThread
impl ImapMessageThread
pub fn new( algorithm: ThreadingAlgorithm<'static>, search_criteria: Vec1<SearchKey<'static>>, opts: ImapMessageThreadOptions, ) -> Self
Trait Implementations§
Source§impl ImapCoroutine for ImapMessageThread
impl ImapCoroutine for ImapMessageThread
type Yield = ImapYield
type Return = Result<Vec<Thread>, ImapMessageThreadError>
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