pub struct VdirCollectionUpdate { /* private fields */ }Expand description
Rewrites Vdir collection metadata atomically via temp files.
Implementations§
Source§impl VdirCollectionUpdate
impl VdirCollectionUpdate
Sourcepub fn new(
collection: VdirCollection,
opts: VdirCollectionUpdateOptions,
) -> Self
pub fn new( collection: VdirCollection, opts: VdirCollectionUpdateOptions, ) -> Self
Creates a new coroutine that will write the metadata of
collection to disk.
Trait Implementations§
Source§impl Debug for VdirCollectionUpdate
impl Debug for VdirCollectionUpdate
Source§impl VdirCoroutine for VdirCollectionUpdate
impl VdirCoroutine for VdirCollectionUpdate
Source§type Yield = VdirYield
type Yield = VdirYield
Intermediate value handed back on every step. Per-coroutine:
each implementor picks exactly the variants it needs. In
io-vdir every coroutine picks
VdirYield.Auto Trait Implementations§
impl Freeze for VdirCollectionUpdate
impl RefUnwindSafe for VdirCollectionUpdate
impl Send for VdirCollectionUpdate
impl Sync for VdirCollectionUpdate
impl Unpin for VdirCollectionUpdate
impl UnsafeUnpin for VdirCollectionUpdate
impl UnwindSafe for VdirCollectionUpdate
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