pub struct ImapMessageFetchFirst { /* private fields */ }Expand description
FETCH restricted to a single message.
Implementations§
Source§impl ImapMessageFetchFirst
impl ImapMessageFetchFirst
pub fn new( id: NonZeroU32, items: MacroOrMessageDataItemNames<'static>, opts: ImapMessageFetchOptions, ) -> Self
Trait Implementations§
Source§impl ImapCoroutine for ImapMessageFetchFirst
impl ImapCoroutine for ImapMessageFetchFirst
type Yield = ImapYield
type Return = Result<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 ImapMessageFetchFirst
impl RefUnwindSafe for ImapMessageFetchFirst
impl Send for ImapMessageFetchFirst
impl Sync for ImapMessageFetchFirst
impl Unpin for ImapMessageFetchFirst
impl UnsafeUnpin for ImapMessageFetchFirst
impl UnwindSafe for ImapMessageFetchFirst
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