pub struct M2dirEntryGet { /* private fields */ }Expand description
I/O-free m2dir entry GET coroutine.
Implementations§
Source§impl M2dirEntryGet
impl M2dirEntryGet
Sourcepub fn new(m2dir: M2dir, id: impl ToString, opts: M2dirEntryGetOptions) -> Self
pub fn new(m2dir: M2dir, id: impl ToString, opts: M2dirEntryGetOptions) -> Self
Creates a new coroutine that will retrieve entry id from
m2dir.
Trait Implementations§
Source§impl M2dirCoroutine for M2dirEntryGet
impl M2dirCoroutine for M2dirEntryGet
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<M2dirEntryGetOutput, M2dirEntryGetError>
type Return = Result<M2dirEntryGetOutput, M2dirEntryGetError>
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 M2dirEntryGet
impl RefUnwindSafe for M2dirEntryGet
impl Send for M2dirEntryGet
impl Sync for M2dirEntryGet
impl Unpin for M2dirEntryGet
impl UnsafeUnpin for M2dirEntryGet
impl UnwindSafe for M2dirEntryGet
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