pub struct M2dirEntryList { /* private fields */ }Expand description
I/O-free m2dir entry LIST coroutine.
Implementations§
Source§impl M2dirEntryList
impl M2dirEntryList
Sourcepub fn new(m2dir: M2dir, opts: M2dirEntryListOptions) -> Self
pub fn new(m2dir: M2dir, opts: M2dirEntryListOptions) -> Self
Creates a new coroutine that will list every entry inside
m2dir.
Trait Implementations§
Source§impl M2dirCoroutine for M2dirEntryList
impl M2dirCoroutine for M2dirEntryList
Source§type Yield = M2dirYield
type Yield = M2dirYield
Intermediate value handed back on every step. Per-coroutine: each
implementor picks exactly the variants it needs. In io-m2dir every
coroutine picks
M2dirYield.Source§type Return = Result<Vec<M2dirEntry>, M2dirEntryListError>
type Return = Result<Vec<M2dirEntry>, M2dirEntryListError>
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 M2dirEntryList
impl RefUnwindSafe for M2dirEntryList
impl Send for M2dirEntryList
impl Sync for M2dirEntryList
impl Unpin for M2dirEntryList
impl UnsafeUnpin for M2dirEntryList
impl UnwindSafe for M2dirEntryList
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