pub trait ImapCoroutine {
type Yield;
type Return;
// Required method
fn resume(
&mut self,
fragmentizer: &mut Fragmentizer,
arg: Option<&[u8]>,
) -> ImapCoroutineState<Self::Yield, Self::Return>;
}Required Associated Types§
Required Methods§
Sourcefn 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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl ImapCoroutine for ImapAppendUid
impl ImapCoroutine for ImapAppendUid
Source§impl ImapCoroutine for ImapAuthAnonymous
impl ImapCoroutine for ImapAuthAnonymous
Source§impl ImapCoroutine for ImapAuthLogin
impl ImapCoroutine for ImapAuthLogin
Source§impl ImapCoroutine for ImapAuthOauthbearer
impl ImapCoroutine for ImapAuthOauthbearer
Source§impl ImapCoroutine for ImapAuthPlain
impl ImapCoroutine for ImapAuthPlain
Source§impl ImapCoroutine for ImapAuthScramSha256
Available on crate feature scram only.
impl ImapCoroutine for ImapAuthScramSha256
Available on crate feature
scram only.