pub struct VdirCollectionList { /* private fields */ }Expand description
Lists every Vdir collection directly under a root directory.
Implementations§
Source§impl VdirCollectionList
impl VdirCollectionList
Sourcepub fn new(root: impl Into<VdirPath>, opts: VdirCollectionListOptions) -> Self
pub fn new(root: impl Into<VdirPath>, opts: VdirCollectionListOptions) -> Self
Creates a new coroutine that will list collections inside
root.
Trait Implementations§
Source§impl Debug for VdirCollectionList
impl Debug for VdirCollectionList
Source§impl VdirCoroutine for VdirCollectionList
impl VdirCoroutine for VdirCollectionList
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.Source§type Return = Result<BTreeSet<VdirCollection>, VdirCollectionListError>
type Return = Result<BTreeSet<VdirCollection>, VdirCollectionListError>
Terminal value. By convention
Result<Output, Error>; the “ok”
arm carries the operation’s final output, the “error” arm
carries the cause.Auto Trait Implementations§
impl Freeze for VdirCollectionList
impl RefUnwindSafe for VdirCollectionList
impl Send for VdirCollectionList
impl Sync for VdirCollectionList
impl Unpin for VdirCollectionList
impl UnsafeUnpin for VdirCollectionList
impl UnwindSafe for VdirCollectionList
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