pub struct ImapMessageFetch { /* private fields */ }Expand description
FETCH over an arbitrary sequence set.
Implementations§
Source§impl ImapMessageFetch
impl ImapMessageFetch
pub fn new( sequence_set: SequenceSet, items: MacroOrMessageDataItemNames<'static>, opts: ImapMessageFetchOptions, ) -> Self
Trait Implementations§
Source§impl ImapCoroutine for ImapMessageFetch
impl ImapCoroutine for ImapMessageFetch
type Yield = ImapYield
type Return = Result<BTreeMap<NonZero<u32>, VecN<MessageDataItem<'static>, 1>>, ImapMessageFetchError>
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 ImapMessageFetch
impl RefUnwindSafe for ImapMessageFetch
impl Send for ImapMessageFetch
impl Sync for ImapMessageFetch
impl Unpin for ImapMessageFetch
impl UnsafeUnpin for ImapMessageFetch
impl UnwindSafe for ImapMessageFetch
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