pub struct MaildirMessageAdd { /* private fields */ }Available on crate feature
maildir only.Expand description
I/O-free coroutine appending a raw message to a Maildir cur/.
Implementations§
Source§impl MaildirMessageAdd
impl MaildirMessageAdd
pub fn new( store: &MaildirStore, mailbox: &str, flags: &[Flag], bytes: Vec<u8>, ) -> Result<Self, MaildirMessageAddError>
Trait Implementations§
Source§impl MaildirCoroutine for MaildirMessageAdd
impl MaildirCoroutine for MaildirMessageAdd
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<String, MaildirMessageAddError>
type Return = Result<String, MaildirMessageAddError>
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 MaildirMessageAdd
impl RefUnwindSafe for MaildirMessageAdd
impl Send for MaildirMessageAdd
impl Sync for MaildirMessageAdd
impl Unpin for MaildirMessageAdd
impl UnsafeUnpin for MaildirMessageAdd
impl UnwindSafe for MaildirMessageAdd
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.