Skip to main content

WebdavCoroutine

Trait WebdavCoroutine 

Source
pub trait WebdavCoroutine {
    type Yield;
    type Return;

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

Standard-shape WebDAV 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]>, ) -> WebdavCoroutineState<Self::Yield, Self::Return>

Advances the coroutine one step.

Pass None on the initial call or after a WebdavYield::WantsWrite. Pass Some(data) after a WebdavYield::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 WebdavCoroutine for AddressbookHomeSet

Source§

impl WebdavCoroutine for CalendarHomeSet

Source§

impl WebdavCoroutine for Copy

Source§

impl WebdavCoroutine for CreateAddressbook

Source§

impl WebdavCoroutine for CreateCalendar

Source§

impl WebdavCoroutine for CreateCard

Source§

impl WebdavCoroutine for CreateItem

Source§

impl WebdavCoroutine for CurrentUserPrincipal

Source§

impl WebdavCoroutine for Delete

Source§

impl WebdavCoroutine for DeleteAddressbook

Source§

impl WebdavCoroutine for DeleteCalendar

Source§

impl WebdavCoroutine for DeleteCard

Source§

impl WebdavCoroutine for DeleteItem

Source§

impl WebdavCoroutine for EnumCards

Source§

impl WebdavCoroutine for FollowRedirects

Source§

impl WebdavCoroutine for Get

Source§

impl WebdavCoroutine for ListAddressbooks

Source§

impl WebdavCoroutine for ListCalendars

Source§

impl WebdavCoroutine for ListCards

Source§

impl WebdavCoroutine for ListItems

Source§

impl WebdavCoroutine for Mkcol

Source§

impl WebdavCoroutine for Move

Source§

impl WebdavCoroutine for MultigetCards

Source§

impl WebdavCoroutine for Options

Source§

impl WebdavCoroutine for Propfind

Source§

impl WebdavCoroutine for Proppatch

Source§

impl WebdavCoroutine for Put

Source§

impl WebdavCoroutine for ReadCard

Source§

impl WebdavCoroutine for ReadItem

Source§

impl WebdavCoroutine for Report

Source§

impl WebdavCoroutine for SendRaw

Source§

impl WebdavCoroutine for SyncCollection

Source§

impl WebdavCoroutine for UpdateAddressbook

Source§

impl WebdavCoroutine for UpdateCalendar

Source§

impl WebdavCoroutine for UpdateCard

Source§

impl WebdavCoroutine for UpdateItem