pub struct MaildirMessageMove { /* private fields */ }Available on crate feature
maildir only.Expand description
I/O-free coroutine moving every id from from to to.
Implementations§
Source§impl MaildirMessageMove
impl MaildirMessageMove
pub fn new( store: &MaildirStore, from: &str, to: &str, ids: &[&str], ) -> Result<Self, MaildirMessageMoveError>
Trait Implementations§
Source§impl MaildirCoroutine for MaildirMessageMove
impl MaildirCoroutine for MaildirMessageMove
Source§type Yield = MaildirYield
type Yield = MaildirYield
Intermediate value handed back on every step. Per-coroutine: each
implementor picks exactly the variants it needs.
Source§type Return = Result<(), MaildirMessageMoveError>
type Return = Result<(), MaildirMessageMoveError>
Terminal value. By convention
Result<Output, Error>; the “ok” arm
carries the operation’s final output, the “error” arm carries the cause.Source§fn resume(
&mut self,
arg: Option<MaildirReply>,
) -> MaildirCoroutineState<Self::Yield, Self::Return>
fn resume( &mut self, arg: Option<MaildirReply>, ) -> MaildirCoroutineState<Self::Yield, Self::Return>
Advances the coroutine one step. Read more
Auto Trait Implementations§
impl Freeze for MaildirMessageMove
impl RefUnwindSafe for MaildirMessageMove
impl Send for MaildirMessageMove
impl Sync for MaildirMessageMove
impl Unpin for MaildirMessageMove
impl UnsafeUnpin for MaildirMessageMove
impl UnwindSafe for MaildirMessageMove
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
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.