pub enum ImapSendResult<T: Encoder> {
Ok(Box<ImapSendOutput<T>>),
WantsRead,
WantsWrite(Vec<u8>),
Err(ImapSendError),
}Expand description
Step output emitted by ImapSend::resume.
Variants§
Ok(Box<ImapSendOutput<T>>)
The exchange completed; carries the boxed output (boxed to keep the enum small next to the I/O variants).
WantsRead
The caller reads from its stream and resumes with the bytes.
WantsWrite(Vec<u8>)
The caller writes the given bytes to its stream and resumes.
Err(ImapSendError)
The exchange failed.
Auto Trait Implementations§
impl<T> Freeze for ImapSendResult<T>
impl<T> RefUnwindSafe for ImapSendResult<T>
impl<T> Send for ImapSendResult<T>
impl<T> Sync for ImapSendResult<T>
impl<T> Unpin for ImapSendResult<T>
impl<T> UnsafeUnpin for ImapSendResult<T>
impl<T> UnwindSafe for ImapSendResult<T>
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