Browse Source

BackendOp: add copy_to() method

async
Manos Pitsidianakis 2 years ago
parent
commit
391058a59c
Signed by untrusted user: epilys GPG Key ID: 73627C2F690DF710
  1. 3
      melib/src/backends.rs

3
melib/src/backends.rs

@ -437,6 +437,9 @@ pub trait MailBackend: ::std::fmt::Debug + Send + Sync {
/// ```
pub trait BackendOp: ::std::fmt::Debug + ::std::marker::Send {
fn as_bytes(&mut self) -> ResultFuture<Vec<u8>>;
fn copy_to(&self, _mailbox_hash: MailboxHash) -> ResultFuture<()> {
Err(MeliError::new("Unimplemented."))
}
fn fetch_flags(&self) -> ResultFuture<Flag>;
fn set_flag(&mut self, flag: Flag, value: bool) -> ResultFuture<()>;
fn set_tag(&mut self, tag: String, value: bool) -> ResultFuture<()>;

Loading…
Cancel
Save