Skip to main content

JmapCoroutine

Trait JmapCoroutine 

Source
pub trait JmapCoroutine {
    type Yield;
    type Return;

    // Required method
    fn resume(
        &mut self,
        arg: Option<&[u8]>,
    ) -> JmapCoroutineState<Self::Yield, Self::Return>;
}
Expand description

Standard-shape JMAP coroutine.

Required Associated Types§

Source

type Yield

Intermediate value handed back on every step.

Source

type Return

Terminal value. By convention Result<Output, Error>.

Required Methods§

Source

fn resume( &mut self, arg: Option<&[u8]>, ) -> JmapCoroutineState<Self::Yield, Self::Return>

Advances the coroutine one step.

Pass None on the initial call or after a JmapYield::WantsWrite. Pass Some(data) after a JmapYield::WantsRead; Some(&[]) signals EOF.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl JmapCoroutine for JmapAddressBookChanges

Source§

impl JmapCoroutine for JmapAddressBookGet

Source§

impl JmapCoroutine for JmapAddressBookSet

Source§

impl JmapCoroutine for JmapBlobDownload

Source§

impl JmapCoroutine for JmapBlobUpload

Source§

impl JmapCoroutine for JmapChanges

Source§

impl JmapCoroutine for JmapContactCardChanges

Source§

impl JmapCoroutine for JmapContactCardCopy

Source§

impl JmapCoroutine for JmapContactCardGet

Source§

impl JmapCoroutine for JmapContactCardQuery

Source§

impl JmapCoroutine for JmapContactCardSet

Source§

impl JmapCoroutine for JmapEmailChanges

Source§

impl JmapCoroutine for JmapEmailCopy

Source§

impl JmapCoroutine for JmapEmailGet

Source§

impl JmapCoroutine for JmapEmailImport

Source§

impl JmapCoroutine for JmapEmailParse

Source§

impl JmapCoroutine for JmapEmailQuery

Source§

impl JmapCoroutine for JmapEmailSet

Source§

impl JmapCoroutine for JmapEmailSubmissionCancel

Source§

impl JmapCoroutine for JmapEmailSubmissionGet

Source§

impl JmapCoroutine for JmapEmailSubmissionQuery

Source§

impl JmapCoroutine for JmapEmailSubmissionSet

Source§

impl JmapCoroutine for JmapEventSource

Source§

impl JmapCoroutine for JmapIdentityGet

Source§

impl JmapCoroutine for JmapIdentitySet

Source§

impl JmapCoroutine for JmapMailboxChanges

Source§

impl JmapCoroutine for JmapMailboxGet

Source§

impl JmapCoroutine for JmapMailboxQuery

Source§

impl JmapCoroutine for JmapMailboxSet

Source§

impl JmapCoroutine for JmapPushSubscriptionGet

Source§

impl JmapCoroutine for JmapPushSubscriptionSet

Source§

impl JmapCoroutine for JmapQuery

Source§

impl JmapCoroutine for JmapQueryChanges

Source§

impl JmapCoroutine for JmapSend

Source§

impl JmapCoroutine for JmapSessionGet

Source§

impl JmapCoroutine for JmapThreadChanges

Source§

impl JmapCoroutine for JmapThreadGet

Source§

impl JmapCoroutine for JmapVacationResponseGet

Source§

impl JmapCoroutine for JmapVacationResponseSet

Source§

impl<T: DeserializeOwned> JmapCoroutine for JmapGet<T>

Source§

impl<T: DeserializeOwned> JmapCoroutine for JmapSet<T>